BLOG
VBA Code to Find Duplicate Files
FREE VBA UTILITIES

VBA Code to Find Duplicate Files

Yesterday I was working on my computer and cleaning the drives to make some more space.  I was surprised to see so many files saved at multiple places which was consuming huge space of my computer drives. One of the biggest tasks was to identify such duplicate files. Initially I …

Read More
VBA Code to Find Last Column or Row of a Sheet
VBA TRICKS

VBA Code to Find Last Column or Row of a Sheet

Sometimes as a developer, you need to take actions in Excel sheets based on last row or column. In Excel, there are two kinds of last cells available: The last cell of the sheet which is XFD1048576 for Excel 2007 or above and IV65536 for Excel 2003 The last used …

Read More
VBA Code to Read Excel Data using Connection String
VBA TRICKS

VBA to Read Excel Data using Connection String

Sometimes as a programmer you need to read heavy (more then 5 MB) Excel files. There are two ways you can read data from Excel files: Open the file using VBA and read the data. Click Here Stablish ADODB connection with Excel file and read data using SQL queries Here …

Read More
VBA To Rename Files
FREE VBA UTILITIES
2

Excel VBA Tool to Rename Files

Here is another help code and tool for programmers to rename files. You can use this tool for renaming all files available in a selected folder. Just browse the folder and hit ‘Rename Files’ button ‘This function loops through all the files listed in the sheet and ‘rename them as …

Read More
VBA TRICKS

VBA Code to Change Sheet Tab Color

Here is another help code for programmers to change the color of Excel sheet tab. I have shown two ways to achieve this: Using standard colors like Green, Blue, Red, White etc. Using RGB (Red, Green Blue) function to set a specific color ‘This function changes the tab color of …

Read More
VBA TRICKS

VBA Code to Sort Data

Here is a one line code for developer’s reference which can be used to sort data ‘Sort data in ascending order on Column F (Created At) Sheet1.Range(“A1:G” & Sheet1.Cells.SpecialCells(xlCellTypeLastCell).Row).Sort Key1:=Sheet1.Range(“F1”), Order1:=xlAscending, Header:=xlYes, DataOption1:=xlSortNormal Before Sort: After Sort:     If you are looking for a VBA code that can sort …

Read More
VBA TRICKS

VBA Code to Filter Data in Excel

Here is an easy reference code which filters data in the sheet. In the code, we have filtered the data in three steps. Step 1: Remove existing filter from the sheet (if any). This code ensures if there is already a filter applied then the same is removed first Step …

Read More
FREE VBA UTILITIES

VBA Tool to Merge Excel Files from a Folder

From last few months, we have been receiving frequent requests from users for a VBA tool which can consolidate Excel files from a folder. So here we come with one more free VBA tool from ExcelSirJi team. With this Excel Consolidator tool, you will be able to consolidate data from …

Read More
VBA TRICKS

VBA Code to Change Cell Color

Excel supports more than 16 million colors in a cell; hence you should know how to set the exact color in a cell. To do this, you can use RGB (Red, Green, Blue) function in VBA to set the color of a cell. The function requires 3 numbers from 0 …

Read More
RGB Code
VBA TRICKS

How to get RGB Codes of a Color

Excel supports more than 16 million colors in a cell; hence you should know how to set the exact color in a cell. To do this through VBA, you can use RGB (Red, Green, Blue) function to set the color of a cell. The function requires 3 numbers from 0 …

Read More
VBA TRICKS

VBA Code to Convert MM.DD.YYYY Format to DD-MMM-YYYY

In different parts of the world, there are different languages spoken and written. With this, a VBA programmer also faces language related issues while writing a VBA program. Here is a common date related problem solved which converts a date written in MM.DD.YYYY format into Excel standard date. ‘This function …

Read More

Facebook
Facebook
YouTube
YouTube
Pinterest
Pinterest
LinkedIn