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.
Minimize the VBA window and move back to Excel's main window. Click the "Macros" button located in the Code section of the Developer tab. Excel displays the Macro pop-up window.
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.
Some results have been hidden because they may be inaccessible to you
Show inaccessible results