How to connect to Microsoft SQL Server using VBA?

When it comes to big amount of data, Excel application is not the best solution to work with, in case of storage. Much better fit would be a database like Access or MSSM. In this article I’m going to show You how to connect to Microsoft SQL Server using VBA.

Continue reading “How to connect to Microsoft SQL Server using VBA?”

How to record macro in Excel?

You don’t have to know programming language to have your Excel tasks automated. Simply just record actions, which should be performed and launch it whenever You need. In this article I will show You how to record macro in Excel application.

Continue reading “How to record macro in Excel?”

Download file using WinHttp & ADODB method

I already described 2 methods how to download file from URL in one of my old articles. They are really good, but not the only methods. In this article I’m going to present the way to download file using WinHttp & ADODB method.

Continue reading “Download file using WinHttp & ADODB method”

How to return a result from VBA function?

As You may know, in general in programming to return a result from function there is Return statement. Even Visual Basic has it. Unfortunately there is no such thing in VBA. In this article I’m going to show You how to return a result from VBA function.

Continue reading “How to return a result from VBA function?”

How to create factorial function in VBA?

This time something different. We will go back to the math lessons. In this article I will show You 5 ways of how to create factorial function in VBA.

Continue reading “How to create factorial function in VBA?”

How to destroy Scripting Dictionary?

I love dictionaries! This is amazing object to create magical list of anything and to find any in just a second! But after they are not in use anymore, how to set them to nothing? How to destroy Scripting Dictionary?

Continue reading “How to destroy Scripting Dictionary?”