http://dmcritchie.mvps.org/excel/buildtoc.htm
Edit Macro in Excel
How to use:
Copy above code.
In Excel press Alt + F11 to enter the VBE.
Press Ctrl + R to show the Project Explorer.
Right-click desired file on left.
Choose Insert -Module.
Paste code into the right pane.
Press Alt + Q to close the VBE.
Save workbook before any other changes.
Press Alt + F8, select 'CreateTOC', press Run.
Test the code:
From an existing workbook, save first.
Press Alt + F8.
Choose 'CreateTOC'.
Press 'Run'.
TOC sheet will be the left-most sheet added in your workbook.
Showing posts with label Force user to enable macro in Excel. Show all posts
Showing posts with label Force user to enable macro in Excel. Show all posts
Wednesday, February 15, 2012
table of content in macro
Posted by AG at 9:26 PM 0 comments
Labels: Excel, Force user to enable macro in Excel, TOC
Thursday, February 9, 2012
Force user to enable macro in Excel
http://www.excelguru.ca/content.php?162
Posted by AG at 1:30 AM 0 comments
Labels: Excel, Force user to enable macro in Excel, Macro, Microsoft Visual Basic
Subscribe to:
Posts (Atom)