↓ Skip to Main Content
Useful code Programming with VBA, C# and Python

Main Navigation

  • All
  • VBA
    • VBA Tools
    • VBA Online Resources
    • All VBA articles
  • Python
  • Else
    • C#
  • Reviews
    • List of reviews
  • YouTube
  • PayPal
  • About
Useful code Programming with VBA, C# and Python

Off Canvas Menu

  • All
  • VBA
    • VBA Tools
    • VBA Online Resources
    • All VBA articles
  • Python
  • Else
    • C#
  • Reviews
    • List of reviews
  • YouTube
  • PayPal
  • About

Year: 2013

Home › 2013
C Sharp Tricks

C# – Display Folder Contents with Console Application – Directory Info Usage

Vitosh Dec 28, 2013

With the current console application we display the contents of a given folder. It is a little useless by itself, but the code has one good advantage – it shows perfect application of DirectoryInfo and some properties as .FullName & …

C# – Display Folder Contents with Console Application – Directory Info Usage Read more →

VBA – Excel – Remove Print View Lines
VBA \ Excel

VBA – Excel – Remove Print View Lines

Vitosh Dec 28, 2013

If you need to remove the print view lines, the easiest was is to do it with a macro 🙂 Actually, there should be other ways to do it and there are other ways definitely, but the workaround them (reading …

VBA – Excel – Remove Print View Lines Read more →

VBA – Excel – Activate Sheet Based on Value on Another Sheet
VBA \ Excel

VBA – Excel – Activate Sheet Based on Value on Another Sheet

Vitosh Dec 28, 2013 Tagged with active sheet value, VBA

With this macro we do not actually add something new – it simply does something, which is quite useful if you are working with big documents where you should select the data, based on different values. In the current example, …

VBA – Excel – Activate Sheet Based on Value on Another Sheet Read more →

VBA – Excel Change Formulas to Values
VBA \ Excel

VBA – Excel Change Formulas to Values

Vitosh Dec 26, 2013 Tagged with Excel, excel formulas to values, VBA

Changing formulas to values is something really easy in MS Excel – what the majority of people (including me) would do the following – simply record a macro, where you select all cells and paste them as values. The result …

VBA – Excel Change Formulas to Values Read more →

Excel – Array Formula for Count of Unique Values
Else - Just Tricks

Excel – Array Formula for Count of Unique Values

Vitosh Dec 26, 2013

The following formula shows something I did not know for a long time – it counts unique values just like that! Before knowing the existence of this formula, people (including me) had to do a lot of workaround simply to …

Excel – Array Formula for Count of Unique Values Read more →

C Sharp Tricks

C# – LINQ – Where, OrderBy, Select

Vitosh Dec 21, 2013

In the current code, we simply show how to use “OrderBy”, “Select” and “Where” in LINQ. If you want to know more about LINQ, you should refer to here. This time Microsoft has written a really good article about this. …

C# – LINQ – Where, OrderBy, Select Read more →

VBA – Start and end of a macro – optimization
VBA \ Excel

VBA – Start and end of a macro – optimization

Vitosh Dec 21, 2013

If you work with VBA macros, you probably have a few lines of code, which you write before you start the actual coding. In this area we include turning off calculations, displaying alerts and screen updating. With other words, this …

VBA – Start and end of a macro – optimization Read more →

VBA – Group sheets based on their names
VBA \ Excel

VBA – Group sheets based on their names

Vitosh Dec 21, 2013

Sometimes you simply want to do an action in a file to all sheets, but not to the two important ones, named “Important1” and “Important2”. In this case, you may use a simple for/each loop with a select case option. …

VBA – Group sheets based on their names Read more →

VBA – Hide specific range per each sheet + formula for tab
VBA \ Excel

VBA – Hide specific range per each sheet + formula for tab

Vitosh Dec 20, 2013

In this article I will simply combine two different subjects – creation of formula, displaying the name of the tab and hiding a specific range per each Excel sheet. Concerning the formula, here it is: =REPLACE(CELL(“filename”,A1),1,FIND(“]”,CELL(“filename”,A1)),””) Concerning the VBA code: …

VBA – Hide specific range per each sheet + formula for tab Read more →

VBA – How to delete quickly all pictures from Excel?
VBA \ Excel

VBA – How to delete quickly all pictures from Excel?

Vitosh Dec 20, 2013 Tagged with delete pictures, delete shapes, Excel, VBA

Probably, if you are programming with Excel as much as me, one day you have the following question – all the pictures in Excel are generated by my code and I really do not care to give them names. I …

VBA – How to delete quickly all pictures from Excel? Read more →

C Sharp Tricks

C# – Calculating square root with two classes

Vitosh Dec 20, 2013

This program will calculate square root with two classes. It is really a fascinating program, due to the fact that it uses precalculation in the class SqrtPrecalculated. Thus, if you need plenty of calculations, once the values are precalculated it …

C# – Calculating square root with two classes Read more →

VBA – send an e-mail from Excel, using MS Outlook and HTML
VBA \ Excel

VBA – send an e-mail from Excel, using MS Outlook and HTML

Vitosh Dec 18, 2013 Tagged with VBA e-mail from Excel

With this article I will simply present you with a solution, combining HTML and VBA, exporting a graph from excel to MS Outlook e-mail. The HTML part is a little complicated and not very flexible, but anyhow – it is …

VBA – send an e-mail from Excel, using MS Outlook and HTML Read more →

VBA – Excel – Lock macros from viewing
VBA \ Excel

VBA – Excel – Lock macros from viewing

Vitosh Dec 18, 2013

With this short article I will briefly explain how to protect your VBA code from viewing from 3rd parties. It is as simple as that: 1. Open the Visual Basic Editor. 2. On Tools select “VBA Project Properties.   3. …

VBA – Excel – Lock macros from viewing Read more →

VBA – Excel – Adding “iferror” to many cells with one macro
VBA \ Excel

VBA – Excel – Adding “iferror” to many cells with one macro

Vitosh Dec 18, 2013

Have you ever had the case to develop a whole solution and at the end someone to tell you the following: “You know, it works well, just insert IFERROR and it is ready to be submitted.” Then you start rebuilding …

VBA – Excel – Adding “iferror” to many cells with one macro Read more →

Book Review – Introduction to Programming with C# – Free Book!
Review

Book Review – Introduction to Programming with C# – Free Book!

Vitosh Dec 17, 2013 Tagged with C# Free Book, Free Programming Book

This is the first book, which would be reviewed on the site vitoshacademy.com. It is probably the best free programming book (as far as I have never heard of another free programming book) for C#. About 1000 of junior Bulgarian …

Book Review – Introduction to Programming with C# – Free Book! Read more →

PHP – Expenses Sorter – Code Available
Else - Just Tricks

PHP – Expenses Sorter – Code Available

Vitosh Sep 28, 2013

With the current application you may do the following – enter an expense and select what kind of expense it is. I have predefined some of the expenses, but you may add your own later. What the PHP application actually …

PHP – Expenses Sorter – Code Available Read more →

PHP – Check whether cookies are cleared – Code explained
Else - Just Tricks

PHP – Check whether cookies are cleared – Code explained

Vitosh Sep 27, 2013

This site checks whether you have deleted your cookies. In order to check whether you have deleted successfully your cookies do the following: 1. Delete your cookies. 2. Refresh this website. If your cookies were deleted, the site will tell …

PHP – Check whether cookies are cleared – Code explained Read more →

C Sharp Tricks

C# – Mutiverse Communication – problem from IT competition/exam

Vitosh Sep 26, 2013

On the 14th September 2013 I was participating in a C# competition for advanced by Telerik Academy. After spending 5 hours, trying to solve 5 quite tough C# problems, I have obtained 140 points. With this result I was ranked …

C# – Mutiverse Communication – problem from IT competition/exam Read more →

Chrome – Browser Password Revealer
Else - Just Tricks

Chrome – Browser Password Revealer

Vitosh Sep 18, 2013 Tagged with reveal password in chrome

Hello! This is just a small post, explaining how to reveal a password from any menu at Chrome. Imagine, that you have used the option “Remember password” and due to it you have not even entered it once in the …

Chrome – Browser Password Revealer Read more →

VBA – Reading information from a closed MS Access file
VBA \ Excel

VBA – Reading information from a closed MS Access file

Vitosh Sep 8, 2013

In this article I will show how to check data through a VBA code in Excel, which is available in a closed MS Access file. Let’s imagine the following: 1. You have an MS Access database file with some random …

VBA – Reading information from a closed MS Access file Read more →

MS Excel – Just a little about the add-ins and how to get rid of them
Else - Just Tricks

MS Excel – Just a little about the add-ins and how to get rid of them

Vitosh Sep 7, 2013

In this article I will explain two really useful points: What are add-ins? How to get rid of them? (only in case that we need to) If we ask google, we understand that an addin is a component you can add …

MS Excel – Just a little about the add-ins and how to get rid of them Read more →

C Sharp Tricks

C# – Extraction of Emails from a Text – Video

Vitosh Sep 6, 2013

In this article I explain how to perform a simple task, which is usually given to administrators – extract e-mails from a text. Once, about 4 or 5 years ago I was given such a task and I lost about …

C# – Extraction of Emails from a Text – Video Read more →

MS Excel – Simple Linear Regression
Else - Just Tricks

MS Excel – Simple Linear Regression

Vitosh Aug 31, 2013 Tagged with Excel, Forecasting

Linear regression is something rather useful for forecasting analysis. If you want to understand more about linear regression, you may go to wikipedia, there you have a wonderful article about it. Long story short, linear regression is an approach, modeling …

MS Excel – Simple Linear Regression Read more →

SQL – Simple query with MS Access – Best In Class per Class
Else - Just Tricks

SQL – Simple query with MS Access – Best In Class per Class

Vitosh Aug 30, 2013

In this article with MS Access I will show how to create a good MS Access query, which results in best in class results. Let’s imagine, that we have the following data: In this database, we have four columns – …

SQL – Simple query with MS Access – Best In Class per Class Read more →

VBA – Open a Table at MS Access
VBA \ Excel

VBA – Open a Table at MS Access

Vitosh Aug 20, 2013

In this article I will continue the subject concerning VBA and MS Access. I have thought of a rule of a thumb, presenting only 3 macros per article, thus being sure that the reader does not get bored. Here I …

VBA – Open a Table at MS Access Read more →

VBA – Three easy Excel Macros which will make your life easier
VBA \ Excel

VBA – Three easy Excel Macros which will make your life easier

Vitosh Aug 17, 2013

With this article I am going to present just a few easy Excel Macros, which I have found useful once. The first one is a typical example of loops in VBA and it creates an excel spreadsheet with tabs for …

VBA – Three easy Excel Macros which will make your life easier Read more →

SQL – Access and Wikipedia – quick way to learn the basics
Else - Just Tricks

SQL – Access and Wikipedia – quick way to learn the basics

Vitosh Aug 15, 2013

It is quite challenging and quite not interesting to learn SQL if you are a complete beginner – after reading a lot, about installation of servers and programs many people just quit and state that it is not their thing. …

SQL – Access and Wikipedia – quick way to learn the basics Read more →

VBA – Export of selected cells to HTML
VBA \ Excel

VBA – Export of selected cells to HTML

Vitosh Aug 13, 2013

Hello! In this article I will present a code for the easy export of selected cells into a HTML file. In general, the code functions in the following way: 1. Takes a look at the selected range and performs a …

VBA – Export of selected cells to HTML Read more →

C Sharp Tricks

C# – Check number and fill lists – Video

Vitosh Aug 8, 2013

In this video I perform a check whether a number is an integer or a double. If it is double, it fills out a List<double>(); and if it is integer, it fills out a List<int>(); Once something is entered, which …

C# – Check number and fill lists – Video Read more →

C Sharp Tricks

C# – Random Password Generator – Video

Vitosh Aug 7, 2013

I know a lot of people, having problems creating passwords. With the current code I will show you how to create a password using C#. The password consists of at least two capital letters, two small letters, a digit and …

C# – Random Password Generator – Video Read more →

Posts pagination

1 2 Next

Copyright © 2026 VitoshAcademy