News

The "My Documents" folder path contains a variable username component and changes from one user to another. It is possible to write a code in VBA or VB6 to access the "My Documents" folder regardless ...
Browse to a convenient folder on your PC in which to save the macro code module file and click "Save." The VBA editor saves the macro code as a .BAS file.
The bare bones VBA code A simple list of sheet names is easy to generate using VBA thanks to the Worksheets collection. Listing A shows a simple For Each loop that cycles through this collection.