Top "Vba" questions

Visual Basic for Applications (VBA) is an event-driven, object-oriented programming language for writing macros, used for the entire Office suite as well as other applications.

Conditional Formatting using Excel VBA code

I have Range object called DistinationRange which contains reference to range B3:H63 I want to apply the following two …

vba excel conditional-formatting
Detect if range is empty

I want to check if a range in Excel is empty. How do I write in VBA code: If Range("…

excel vba range
HTML Text with tags to formatted text in an Excel cell

Is there a way to take HTML and import it to excel so that it is formatted as rich text (…

vba excel html-parsing
Get list of Excel files in a folder using VBA

I need to get the names of all the Excel files in a folder and then make changes to each …

vba excel excel-2010
How to Insert Double or Single Quotes

I have a long list of names that I need to have quotes around (it can be double or single …

csv excel quotes vba
How to open a folder in Windows Explorer from VBA?

I want to click a button on my access form that opens a folder in Windows Explorer. Is there any …

ms-access vba
Accessing SQL Database in Excel-VBA

I am copying an VBA code snippet from MSDN that shows me how to grab results from a SQL query …

sql vba excel adodb
Clear contents and formatting of an Excel cell with a single command

If you want to clear the contents of a cell or range in Microsoft Excel, you can use .ClearContents. If …

vba excel excel-2013
How do I use checkboxes in an IF-THEN statement in Excel VBA 2010?

I need to use the value of checkboxes for an IF-THEN statement. Based on what the user checks, the way …

vba excel excel-2010
What is the difference between dim and set in vba

Pardon me as am a newbie in VBA. Sometimes I use Dim r as Range r = Range("A1") Other times …

excel vba vb6