Category Archives: VBA

No Thumbnail

Excel VBA, RGB

As previously mentioned in the article Excel VBA, Color Code when working with colors in Excel you must know their color code. Though sometimes you may want set the color by using the RGB color model. This can be achieved using the RGB() function. For more information

No Thumbnail

Excel VBA Open File Dialog

There may be times when you need to ask the user to select a file to open. This can be done using the open file dialog. Keep in mind that the open file dialogs doesn’t actually open anything. It returns the path of the file

No Thumbnail

VBA Editor, Indent and Outdent Blocks of Code

In this article I will explain how you can indent and Outdent blocks of code. – Step 1, Select the Text to Indent: The first step would be to select the block of text you would like to indent: – Step 2, Press TAB: By

No Thumbnail

Excel VBA Range Gradient Color

In the article Excel VBA, Gradient’s Colors I’ve explained the basics about working with gradient colors. I’m assuming readers are familiar with the concepts explained in that article before reading this article. Jump To: Gradient Color, Range Modify Existing Gradients Color for Range – Gradient Color, Range:

No Thumbnail

Excel VBA, Getting the Color Code Using the Macro Recorder

In a previous article I’ve provided a sample code for getting the color code based on the fill color of a cell, Excel VBA, Get Color Code. In that example the user changes the fill color of the cell A1. After pressing the Get Code button the

No Thumbnail

VBA Set Camera, Google Earth API

This article explains how you can use VBA for Excel to automate Google Earth and set the camera to the location you want. It will be assumed there is KML file located in the path “D:StuffBusinessTempLocation.KML”. The KML file contains the required data for setting the camera

VBA Access Create Table in External Database (Automation)

In this article I will explain how you can create a table in an external access database using VBA. Before creating a table you will need to connect to an external database. You could either create a blank access database using the topic covered in

No Thumbnail

VBA Get Table Names in External Access Database (Automation)

In this article I will explain how you can get the names of all the tables in an external access database using VBA. The first step would be to connect to an external database. I’ve explained this in the article below: VBA, Open Access Database From

No Thumbnail

Excel VBA, Sheet Gradient Color

In the article Excel VBA, Gradient’s Colors I’ve explained the basics about working with gradient’s color. I’m assuming the reader is familiar with the topics covered in that article. – Gradient Color, Row: In the article Excel VBA, Gradient’s Colors I provided 2 examples for creating gradients with different colors. The examples

No Thumbnail

File and Folder Dialoges VBA

You have probably worked with file and folder dialogues before. Selecting a file to open choosing a path to save the current file choosing a directory path Although it would seem that the dialog itself does the saving and opening, but most dialogues actually don’t do any of that.