I have a workbook and want to copy my sheet entitled person1 99 times so I have tabs reading person2,person3,person4 etc. is there anyway to generate the 100 sheets without manually creating them?
I have a workbook and want to copy my sheet entitled person1 99 times so I have tabs reading person2,person3,person4 etc. is there anyway to generate the 100 sheets without manually creating them?
Hi, Jhertilus,
using Visual Basic for Applications or short VBA, the programming language of the OfficeSuite.
Code will do 99 copies but check in advance if the worksheet doesn´t exist in the workbook.![]()
Please Login or Register to view this content.
Both Sub and Function must reside in a standard module.How to install your new code
- Copy the Excel VBA code
- Select the workbook in which you want to store the Excel VBA code
- Press Alt+F11 to open the Visual Basic Editor
- Choose Insert > Module
- Edit > Paste the macro into the module that appeared
- Close the VBEditor
- Save your workbook (Excel 2007+ select a macro-enabled file format, like *.xlsm)
To run the Excel VBA code:
- Press Alt-F8 to open the macro list
- Select a macro in the list
- Click the Run button
Ciao,
Holger
Use Code-Tags for showing your code: [code] Your Code here [/code]
Please mark your question Solved if there has been offered a solution that works fine for you
Nice thank you!
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks