VBA Hello World - Excel Macro - For Beginners
Get easy step by step guide to code a Excel Vba hello world program. It is perfect place to start Excel Programming for beginners. 1. Excel VBA "Hello Worl...
Showing all 152 tutorials in this topic.
Get easy step by step guide to code a Excel Vba hello world program. It is perfect place to start Excel Programming for beginners. 1. Excel VBA "Hello Worl...
How To Send Bulk Email From Outlook Using Excel? Learn the best ways on how to send email from Excel VBA to multiple recipients here. Download "Send Mass E...
1. Add Excel Command Button from Quick Access Toolbar This is Applicable for Excel 2007 and above versions. This page has quick tips to insert command butt...
Get Folder List with VBA Dir - Remove Empty Folders To get the list of folders within a folder through VBA, it would have been nice if the command name is ...
What is a macro in excel? This is a fine option that can be used to learn Excel VBA Macro . When the "Record Macro" in switched ON: Manual operation done t...
Excel VBA Schedule Macro to Run at Specific Time Here you will learn - How to add Excel VBA Timer Event to run macro automatically at certain time & how to...
Excel VBA Outlook Calendar - Bulk Upload Tasks Easy trick on how to add a Calendar Item in Outlook from list of reminders/appointments in Excel. Manually c...
Office Communicator Verify - User Status Office Communicator display list of Friends added in it along with their availability status (whether they are ava...
Excel VBA - Create, Delete, Exists, Copy, Move, Open Folder Operation Be it any operation on a system directory, like any of these: List Folder or check fo...
Hierarchy: As a User, When we edit data in excel document manually we use keyboard or mouse pointer to traverse through different worksheets or cells. It i...
Shouldn't Have Combined these two topics into One: In this blog a Formula actually means the Worksheet Functions, that we use in excel sheets directly that...
How to Import application list from Task Manager to Excel? Well, this can be done with the help of the Windows API Function from the library Kernel32. Usin...
VBA Code to Extract Data from Website to Excel To perform HTML screen scrapping or get webpage data into Excel using VBA code, read these easy tips. Progra...
Call Macro if Cell Value Changes Learn how to create a VBA Range macro to run when any specific cell value changes. Also we don't have to explicit use any ...
Built-in Excel Worksheet Functions This Is What We Do When Excel Does Not Have A Formula That We Need Desperately. There are plenty of Excel Worksheet Func...
Are we Using Start Up Folder Option We have option in Windows to add the list of application to be launched during a system start up. But, we do not use it...
One Click - Save Screenshot to an Image File and Attach in Excel. This topic explains some basics about creating a Print screen Automation Tool in Excel VB...
Convert Text To Date in Excel or Number For Excel date format conversion manual or VBA follow these 2 methods. Excel automatically converts the data types ...
How to Change Excel Date Format? Excel date format related function are grouped in Menu-> Formula -> Date & Time Option. Using this, we can get today's dat...
Anagram Maker - All possible Words Combination Generator Get Excel VBA code to create your own Word Combination Generator in 2 mins. Just follow these simp...
Excel Trim Not Working - Remove Unwanted Characters Is Your Excel function TRIM not able to remove non-displayable characters? A Trim function will remove ...
Export HTML Table to Excel - When Web query does not work To Import a HTML table in a web-page we can use, Web Query option in Excel to import it to Excel ...
How to Create a Worksheet in Excel? MS Office provides option to create dynamic spreadsheet in Excel during run-time. Also, users can do to other worksheet...
How To Convert VCF To Excel? To convert contacts in VCF to Excel, You can use one of these methods. Download our vCard to Excel App Excel VBA Conversion Co...
VBA to get Excel Cell Background Color RGB Code & Change it Hope you would like these in-depth Excel cell color formatting techniques. In Excel macro to ge...
How to Merge Files in Excel using VBA? Get VBA merge text files Excel macro code in this article. In our daily work routine we deal with lot of data & log ...
Excel Import Data From Another Workbook - VBA Codes To pull data from an external Excel file, use on of these scenarios. Closed Excel file: Using VBA Impor...
Work Life Balance and Time Management Schedule and Balance Work Vs Life This article explains how to Automate Locking a Windows Workstation and schedule yo...
Excel VBA Shutdown Computer - Visual Basic Code Note: Save all your unsaved Documents before Testing this Code This VB6 or VBA Shutdown, Log off or Reboot ...
Trouble Remembering Too Many Login Credentials - Password Management with Encryption This article explains some techniques on how to make your own password...
How To Password Protect Excel & Word Documents? The Article explains how to secure a document with built in options & then a corresponding VBA Code snippet...
VBA Username in Excel, Outlook, Word etc., Using Excel VBA you can get username who is currently logged in & active, get author name who edited the Excel w...
Activate VBA Text to Speech (TTS) in Excel In this article you will learn about these topics related to TTS in Excel. Install Text to Speech (TTS - SAPI Wi...
Secure FTP Upload Thru Different Methods FTP automation is done to transfer data from PC or web server to a FTP file hosting service. Often this data is se...
Excel VBA To Download File from Website URL In this article you will get VBA code to download file from any website URL. Consider your have a list of files...
Login Automatically into Social Media Networks in IE using Excel These days’ people spend too much time in Social Media Networks like Facebook, Twitter, an...
Usual Sorting of Data or Table in Excel To Sort a Column Data in Excel, the user has to select the data range or column and then choose option “Sort & Filt...
1. Excel Delete Multiple Blank Rows (Built in Option) To remove blank rows in Excel, Open the worksheet & follow these menu options. Select data range that...
Index: Create List of Worksheet Names with Hyperlinks Ever came across this question !!! What is the maximum limit for number of sheets in Excel? Answer is...
Excel VBA Telnet Client for Remote Connect We use Telnet Client sessions to control or manage systems that does not have a keyboard or monitor attached to ...
Fetch Email Addresses - Quick Install & Test Code Open MS Outlook and Select any mail in Inbox or any other Folder Open new Excel Workbook, Alt+F11, Copy P...
Email Address Harvesting Software To collect Email Ids from website, use this Mass Email extractor or Email harvesting software. This is mainly used by mar...
Facebook Timeline - News Feeds - Wall Posts In this article, we are going to explain, How to use Facebook OpenGraph API to extract your FB data in JSON for...
Conversion From CSV to VCF (or vCard) To convert a contacts from CSV to vCard file business contact format, use this easy tips. CSV stands for Comma Separa...
GeoIP to Location Lookup Database - Find Website IP Many websites and software provide free GeoIP - IP to location lookup services. If we input an IP addre...
URL to IP Address - Intro In Computer networking, IP address can be one of these 2 types & are represented in decimal/hexadecimal dotted format. IPv4 - 32 ...
Types of Mortgage Loan Interest Rates There are broadly two common types of interests in Mortgage Loans. In the first type, Interest is set to a Fixed rate...
Compatibility Issues working with Application in Older Version Of Office After the recent upgrades in Microsoft products, we can notice few compatibility i...
Macro for Vlookup Tutorial A Vlookup function search for ‘value’ in the first column of ‘table Range’ & returns a value from the same row. Syntax: This art...
.ics File Format (ICalendar) Events like meeting requests, tasks, alarms, to do list etc., are stored in Calendar application. This Calendar application co...
Convert Excel to Access Database Use this simple method to learn how to create Access database from Excel spreadsheet. Programmers convert Excel to Access ...
Excel VBA Print & Save as PDF Commands This article provides code for creating PDF from Excel & Vba print macro Excel 2010 or versions less than that. Just...
Auto Send Instant Office Communicator Message from Excel This article explains how to send instant messages to your friends through Excel. The code in this...
Task Manager in Excel - How to use Excel to Monitor Servers or PC? There are in built application in Windows to view what applications are currently runnin...
How to Compare Two Excel Sheets for Differences? How do you compare Excel Spreadsheets? To assure quality of a software, compare Excel files as explained b...
Random Numbers in Excel Formula, VBA & SpreadSheets Is it any Guessing Game? Yes. If you can predict the next number these functions can generate then, Mic...
Unprotect Excel Sheet - Without Knowing Password Get VBA Macro code in this page, that will help you to generate an alternate password to un-protect Excel ...
How to Lock a Folder in Windows 7 or Above? Microsoft keeps on upgrading its Windows Operating System consistently to improve User experience and Security....
How To Hide Desktop Icons of Active Apps? As the name suggests the Windows Operating System executes the application as different Windows. User sees the De...
How To Create Excel Data Table? A Data Table generates different scenarios for your formula. You can use it to do What-if analysis. Lets first create a Exc...
Sudoku Solver - Excel Games Puzzle Sudoku is one of the famous Math games that will test your memory capability. Here is the list of instructions about how...
In one of the earlier topics we learned how to generate Random numbers in Excel & Google Spreadsheet . Now, we will see how to get values from Random Colum...
Do you have hundreds or thousands of inbound emails in your Inbox with important data fields? Maybe your business is receiving leads or order confirmations...
Convert XML Files to Excel - 5 Methods to Import To Import XML data to Excel you can use any of these listed methods. VBA to import XML to Excel Quick VBA ...
Engineering Unit Conversion Table In Excel If you want to convert kg to lbs, meter to feet or liter to gallon -this Engineering Unit Converter Excel app ca...
Non-Repeating Numbers - With Excel RND function In Excel VBA or any programming language we have built in function to generate random number. But it will g...
What this VCF converter Can Do? Get this VCF to Excel Universal converter, to perform the below listed operations. Convert any VCF file to Excel with no li...
JavaScript Functions With in VBA: The Merger Include a reference to ‘Microsoft Script Control 1.0’ as explained below, before proceeding with further JavaS...
Excel VBA To Select & Copy Visible Cells In Excel, sometimes few rows wont be in visible state, when auto-filter is enabled or made hidden by any user. In ...
How to Automate Emails From Excel? Get macro to send email from Excel & email Excel file as attachment using VBA. In this page, you will learn and get code...
Get Stock Quotes in Excel Use this simple technique to get free stock market data as an Excel stock price list. Have you been a stock market investor dumpi...
Convert Formatted Cell in Excel to HTML To get the font and formatting style of a text in worksheet follow these methods. Excel Worksheet Cell format – Sin...
Check IF VBA String Contains Letters or Alphanumeric There is no string operator or function that performs VBA check if string contains only letters. There...
VBA to Add Semicolon to Email Addresses in Excel If you have Email Ids in Excel, then create distribution list using this app or VBA code. We come across s...
Convert Excel VBA 32 Bit to 64 Bit To solve Compile error: 'The code in this project must be updated for use on 64-bit systems', continue reading If you up...
What is Display Resolution? The number of Pixels displayed in your Monitor is called Screen Resolution. It is represented as how many Pixels displayed in S...
Call Excel VBA Shell Command Object Output There are 2 methods to read Excel vba shell command output. Write the vba shell command prompt output to a text ...
1. Add Drop down list with Excel Data validation? A data validation list in Excel enable users to choose only predefined values from a drop down option. If...
Convert VBA Color Codes to RGB or HEX To convert the Excel vba color index list to RGB, HEX, Long/Decimal use these functions. This covers almost all type ...
Excel VBA Color Index List Excel color index are used to change either a worksheet's background(Interior), font or border color. There are 56 colors that h...
Excel Compare Two Columns & Report Differences Learn how to compare multiple columns in Excel with huge volume of data. Find duplicate entry in 2 columns u...
How To Add Hyperlinks in Excel Using Formula? Higher version of MS Excel like 2007 or above have built in function to add links. Select a cell to insert a ...
Create a New Workbook with VBA Quick trick with Outlook, Word,Excel VBA create new workbook while run-time on the go. Note: To create a Excel file from Out...
How to Copy Excel Chart in PowerPoint Slides using VBA Macro - Step by Step Tutorial Requirement: We need to copy several charts from Excel in Powerpoint s...
Read XML using Excel VBA XML is the file format that is widely used to transfer data over internet or between 2 systems with different platforms. The most ...
Clear Cookies, Cache, Browsing History From Excel VBA delete cache, cookies, browsing history, temporary internet files used by IE or MSHML2 xmlhttp reques...
File Operations - VBA, Python, VBS, C, C++ & DOS It is important for any programming language to open text file or get data from external file or write to ...
Convert Array of 2 Dimension to 1 Dimension In Excel VBA , we use 2D arrays quite often. This is because, we convert Excel Worksheet Range to Array and do ...
Excel VBA sorting Range of multiple Columns How to Sort a Excel range of data? Do it either thru VBA Sort Range code or Built-in menu option. I have presen...
How to Connect Access Database in Excel Macros? Updating Excel Spreadsheet from Access Database using this step by step Excel VBA Access Macro code is just...
How to Create Organization chart in Excel? Do you want to do add Org Chart thru this menu option? Click on Excel Menu -> Insert -> Smart Art. Choose Hierar...
1. Disable Images in Firefox, IE & Chrome Speed up browsing by Turning off images in Firefox & other browsers. Yes it is also called as Text only mode. Not...
Parse JSON - Converter in Excel This name often reminds me of the film Jason Bourne . But this JSON is a file format standard. In this page, You can get JS...
Get Historical Stock Quotes - Google Finance Historical Stock Quotes are required as a first data item when you considering buying a stock. Lets say you ar...
Excel VBA - Copy Active Workbook Get syntax for vba function to copy active workbook or external workbook saved in the folder. For both these purpose, we w...
Extract Data From Website Using VBS (vbscript) To get website data to using vbscript (.vbs) file, we need to know 2 processes. First one is to extract HTML...
Delete all Shapes in Excel Workbook In Excel a shape object can be: A square box, round, call outs, star, arrow, line etc., Do you want to clear all these ...
Choose From Multiple Outlook Email Accounts Marketing people send tons of emails daily, to their customer base. If a customer is not interested in the offe...
Excel to HTML Table Do you want to copy the Excel Table to a webpage? Most of the time, It is easy to represent data in table format. Excel spreadsheet is ...
How to Assign a Macro - to a hyperlink in Excel? Did you just thought a button click or keyboard shortcut - are the only possible way. Run macro using hype...
VBA Code To Access All Open Excel Files The code below will loop through all workbooks that are open in current system. If you want to scan through all the...
Excel VBA Find String - In Range of Cells Get code to perform search operation for a string in Excel worksheet cell range. Commands Used: Range.Find & Rang...
VBA Delete File from Computer Folder There should be multiple ways to do it. In this article, I have given 2 methods . One is by using Filesystemobject & o...
Option Explicit - Not Working - Fix Yes. It is very strange that my client reported that Excel app I delivered gave "Variable not defined" error. But, when...
Number to String Conversion When we say converting a "number to string", it is not about changing a number 1 to 'One'. If you are looking for such conversi...
Excel VBA Optimized - Reduce Run Time You can use this code in almost all of your macro code. This will improvise your code run time drastically. Macro tha...
Browse File Dialog in Excel VBA In Excel file, if you are doing any folder operations or trying to read content from another text,xlsx, csv file. It is bet...
Enable Grayed Option on Excel Right Click Does some of the options on the right click command bar is disabled or grayed out in your Excel Worksheets. Thoug...
1. Check if AutoFilter is On or Off in any Worksheet This below vba function returns True if autofilter is enabled in a worksheet. otherwise returns false....
Excel VBA & Menu Option - Sort By Color Excel has option to Sort a column based on these 4 items. Sort based on Value Sort based on Cell color or Backgroun...
List all Network Adapters using Excel VBA Excel VBA code in this page can list all the network adapters in your computer along with its complete attributes...
Find MAC Address using VBA A MAC address is a unique ID assigned to a Network adapter & it stand for Media Access Control Address. There can be more than M...
VBA Web scraping with Internet Explorer Web scraping is the process of extracting data available to public. For example: You might want to extract stock hi...
Excel VBA - Remove Duplicates from Data Range To remove duplicate values from a data range or column, this VBA code is going to use the build in option 'Re...
What happens with spell check? First the spell check process will happen on current cell. The process will take each word in the cell for correct spelling....
Find Computer Name in Excel VBA In this page, get three different vba code to get Computer name. Environment variable Windows Api wScript.Network To get th...
Get list of all Hyperlinks in Excel file This macro produces a hyperlink index sheet. To get list of hyperlinks in each worksheet, the Vba code in this pag...
VBA code to delete all #N/A error in Excel #N/A error can occur as a return code from any Excel formula like Vlookup, Lookup etc., If you copy paste data o...
Comment Block & Uncomment Block In VBA to comment a multiple lines of code with single step: There is no keyboard short available commenting. But VBA edito...
Custom Order or Alphabetical Order This page has VBA code that can arrange worksheets in a Excel file in: Custom Order as per user preference Alphabetic Or...
Excel VBA Scripting.Dictionary "Dictionary" is a datatype similar to an array, but in addition it can hold a group of variable or objects. Another availabl...
VBA Code to Check if Sheet with Name exists? This Excel vba code will check if sheet with a specific name exists in the workbook. As per Microsoft specific...
Clear Excel VBA Immediate Window Manually There is no explicit option to clear immediate window. Just select all content in Immediate window using control ...
How to Combine Sheets from Multiple Excel to One? This flexible Excel app in this page will merge Worksheets from multiple Excel files to one file. The Use...
How to Rename a file with Excel VBA? To rename a file with VBA, use the function mentioned below. Usually, You can find a lot of function used in VBA under...
How to Make VBA to Wait for Few Seconds? Sometimes You have to make code execution to halt (vba wait time) for few minutes. This happens when VBA code has ...
VBA Code to Find My Documents Folder Path This code will get the folder path directly pointing to the 'Documents" folder. Using this code, the documents fo...
VBA - Find Temporary Folder Path To save any intermediate data files, instead of creating a folder, You can use system default temporary folders. This way,...
Extract Zip - Unzip files with VBA To extract Zip file content, You can use windows default "Compressed (Zipped) Folder" application. There is no inbuilt o...
Computer IP Address - Local & Public IP stand for Internet Protocol address. It is assigned to every network device - be in a computer, smartphone, router ...
VBA Code to Zip File or Folder Just like this vba code, this also uses the Windows default file compressor. There is only one difference between this code ...
Verify Email Address Format in VBA Code in this page will verify if a email id is in proper format. This code uses regex pattern matching. To do this, firs...
How to find Your VBA Version? The below code will get the VBA version detail using pre-compiler directives. We cannot display the value in thee variables. ...
Export Excel Range to Image (jpg/png/gif) using Vba? This code ill convert the data in Excel workbook into a jpg image file as how it is displayed on scree...
[VBA] Change Selection - Update Drop Down List in Excel This does not require any special code. It can be done just by changing the value in the particular...
Excel VBA Macro to Copy File This page explains about 2 options to do file copy using Vba. CopyFile option from FileSystemObject VBA.Filecopy The first one...
User Input Msgbox with Yes No Cancel Some time the VBA code has to get approval from user with Yes/No/Cancel optop. Here is the simple code snippet that ge...
Delete Folder using Excel VBA Macro This Excel VBA code will get folder path as input, check if it exists. Then it will delete if it exists. Important Note...
How to add Data validation drop down list in Excel VBA? Two different methods to create drop down list are explained here - but all are related to validati...
How to Remove DropDown box in Excel & VBA? If you know the cell address that you are going to delete, then it is easy. But there are times, where we might ...
How to hide/Unhide Sheet Tabs in Excel? By default Excel displays the tabs at left hand side bottom. Using this Users can navigate to any worksheet present...
How to Set No or Cancel as default Msgbox button? In Msgbox with YesNo or OkCancel buttons, the first button will be set as default button. i.e., once the ...
Detect Sheet Protection Whenever working with a worksheet ever wondered why some menu buttons are not working or ribbon icons are greyed out and no functio...
In today's world, the data sets we have is huge and we can have so many criteria to be followed on the data For Example: Sum Average etc. Let us say we hav...
How to open VBA code or Macro code in an Excel file? You will be able to open VBA (Visual Basic for Applications) code written within a Excel file using an...
How to change Text encoding from ANSI to UTF8? If there are multiple txt files or programatically you need to change the encoding of a file from ANSI to UT...
Excel VBA to Automate Chrome using Selenium In this topic we will learn how to install Selenium library in Windows PC & initiate Chrome browser. Selenium i...
How to run a macro from another workbook? It is possible to run a macro present in a workbook to be execued from another workbook. To do this, we need the ...
VBA - Userform Combobox In userform, we can have a combobox to display list of items as dropdown. User will be able to choose one of the items from this li...
Find how many dimensions an Array has? We use array to store multiple values under same variable name. This array can be a simple one dimensional array or ...
Get all Digits or Numbers within a String If you want to extract all the digits present in alphanueric string like "alpha123how23its98done", use this funct...
How to unhide all sheets in Excel using VBA code? To unhide all sheets in Excel, if you would like to set it manually, then refer to the image at end of th...