VBA

Home/VBA

Excel VBA Examples, Macros, Code snippets and tutorials
Learn VBA for Chats,Pivot tables, Tables, SQL for Data Analysis

Hide Developer Tab in Excel Ribbon

Hide Developer Tab in Excel Ribbon using from the Excel options. It helps to prevent users from opening the Excel VBA editor window. Hide Developer Tab in Excel Ribbon: Right click on any main menu item in the Ribbon. Please find the below screen shot for the same. Click on Customize the Ribbon…, this will

By |October 8th, 2016|VBA|0 Comments

Add CheckBox on Worksheet or UserForm using VBA

We can add CheckBox on Worksheet or UserForm is using VBA with checkbox control and is used to specify or indicate boolean choice. In this section we will see how to add single checkbox or multiple checkboxes on the worksheet or userform using VBA. Please find the more details about add checkbox control using VBA in the following chapter.

By |April 12th, 2015|VBA|2 Comments

VBA code to convert excel to xml

We can use VBA to convert and Save the Excel File as XML file. This example macro will help us to know how to convert Excel Worksheet into a XML file format. This can be used in Excel 2003,2007,2010,2013. vba code to convert excel to XML- Syntax Here is the example Excel VBA Syntax to

By |January 20th, 2015|VBA|0 Comments

VBA to call Worksheet function

We can use worksheet function in the VBA macros. We can call the worksheet functions using Application.WorksheetFunction. We can call any Worksheet function and use in our code. the below example will show you how to use the worksheet functions in VBA. VBA to call Worksheet function Here is the simple example to call the

By |January 20th, 2015|VBA|0 Comments

VBA code to call a function

The below example will help you to know how to call a function in Excel VBA Macros (it can be Excel VBA function, or user defined function). We generally create lot of function and we use the functions whenever and any time we want. The below example will help you to understand calling a simple

By |January 20th, 2015|VBA|0 Comments

VBA code to convert excel to csv

We can use VBA to convert and Save the Excel File as CSV file. This example macro will help us to know how to convert Excel Worksheet into a CSV Comma delimited text file. This can be used in Excel 2003,2007,2010,2013. vba code to convert excel to csv- Syntax Here is the example Excel VBA

By |January 20th, 2015|VBA|0 Comments

VBA code to check if active cell is blank

VBA to check if an active cell is blank macro will help us to determine whether an active range is filled with some value or not. This example will help us to know how to check if an active cell or a range is blank or not using Excel VBA. This can be used in

By |January 20th, 2015|VBA|0 Comments

VBA code to check if a cell is blank

We can use VBA to check if a cell is blank and run the remaining statements. Sometimes, we need to determine and make sure a particular range is not empty before proceeding to the next statements. This example will help you to know how to check if a cell or a range is blank or

By |January 20th, 2015|VBA|0 Comments

VBA write to text file without carriage return Excel

VBA write to text file without carriage return Excel Macros Examples for writing to text files using VBA in MS Office Word, PowerPoint, Access, Excel 2003, 2007, 2010, 2013 and VBScript. This Example VBA Program and function will help you to know how to write a string to text file using Excel VBA. Writing to

By |January 19th, 2015|VBA|0 Comments

VBA write to text file new line Excel

VBA code to write to text file new line Excel Macros Examples for writing to text files using VBA in MS Office Word, PowerPoint, Access, Excel 2003, 2007, 2010, 2013 and VBScript. This Example VBA Program and function will help you to know how to write to text file in New Line using Excel VBA.

By |January 19th, 2015|VBA|0 Comments

VBA write to text file line by line Excel

VBA code to VBA write to text file line by line Excel Macros Examples for writing to text files using VBA in MS Office Word, PowerPoint, Access, Excel 2003, 2007, 2010, 2013 and VBScript. This Example VBA Program and function will help you to know how to write to text file line by line using

By |January 19th, 2015|VBA|0 Comments

VBA write to text file carriage return Excel

VBA write to text file carriage return Excel Macros Examples for writing to text files using VBA in MS Office Word, PowerPoint, Access, Excel 2003, 2007, 2010, 2013 and VBScript. This Example VBA Program and function will help you to know how to write a string to text file using Excel VBA. Writing to a

By |January 19th, 2015|VBA|0 Comments

VBA write to a text file Excel

VBA write to a text file Excel Macros Examples for writing to text files using VBA in MS Office Word, PowerPoint, Access, Excel 2003, 2007, 2010, 2013 and VBScript. This Example VBA Program and function will help you to know how to write a string to text file using Excel VBA. Writing to a text

By |January 19th, 2015|VBA|0 Comments

VBA write to a text file with quotes Excel

VBA write to a text file with quotes Excel Macros Examples for writing to text files using VBA in MS Office Word, PowerPoint, Access, Excel 2003, 2007, 2010, 2013 and VBScript.This Example VBA Program and function will help you to know how to write a string to text file with quotes using Excel VBA. Writing

By |January 19th, 2015|VBA|0 Comments

VBA write to a text file from Excel Range

VBA code to write to a text file from Excel Range Macros Examples for writing to text files using VBA in MS Office Word, PowerPoint, Access, Excel 2003, 2007, 2010, 2013 and VBScript. This Example VBA Program and function will help you to know how to read the data from excel and write to text

By |January 19th, 2015|VBA|19 Comments