VBA - Visual Basic for Applications
If you have to get the last column in an Excel worksheet, the following method can assist since you cannot rely on the UsedRange of Excel.
Why can't you rely on the UsedRange? Read below on how to get the last row in an Excel worksheet.
Determining last row with data in an Excel Worksheet
Source Code
- Hits: 5042
In one of my projects I had to read all worksheet names from several Excel files.
Here is the code for getting all worksheet names from a closed or already opened Excel file.
Referenced Functions can be found below.
getSheetNamesFromWorkbook(wrk)
Getting all sheet names from a workbook
getOpenedWorkbook(filePath)
Getting an opened Excel workbook
- Hits: 4859
I am Mr. Forgetful. What was this password again?
Anyway, if you do not know any better, use brute force!
Source Code
- Hits: 4989
Subcategories
Excel VBA Article Count: 30
This category will hold articles regarding developement in Excel VBA. It will serve as a wiki and an Excel VBA Framework for myself.
Some development tasks reoccur for every customer. Since I am a lazy bum it will be nice to have a central source where I can reuse source code from.
MS Office and VBA Article Count: 11
This category holds articles regarding general things in MS Office VBA independent from the MS Office application.
Power Point VBA Article Count: 1
Access VBA Article Count: 7
This category holds articles regarding Access VBA, but also general things I come accross Access and its usage in companies.
Access VBA DAO Article Count: 2
Page 13 of 17