资讯

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.
The default active cell format in Microsoft Excel isn't all that easy to see, but you can use this easy-to-implement code solution to change that.
Open your worksheet in Excel. ALT-F11 (opens the VBA coding window) Copy/Paste the above code into the editor ALT-F11 (switches back to Excel) Save-As a Macro-Enabled Workbook ...