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.
If you ever wondered how to determine, if an opened workbook was saved before below you'll find a code snippet that might do the job for you.
- Hits: 3086
It has been always annoying me that I could not select more than one column in the Excel Text Import Wizard / Assistant.
I had to select single columns in a preview window and then set a fields data type one by one even if all fields were of the same data type.
Using the Shift key you are able to work around this bug in the text import assistant.
Select the first column then press and hold shift key down and select a column to the right or left of the before selected column.
All columns in between the two selected will be selected as well and are available for property editing :0).
- Hits: 3048
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.
- Hits: 3052
Page 7 of 10