I am writing a macro where when the user clicks a button, it will add a new sheet and automatically draw up a template. I want it where the new sheet is created it's named "Panel (1)" simple enough, however, if they click the add panel button again, I want the next sheet to be named "Panel (2)" and so forth.
If I use this at the beginning of my code, it will create the new sheet named "Panel (1)"
But when I try again to add a new sheet, I get an error that the sheet name already exists, and I can't figure out how to make the numerical value add +1 to the last pre-existing sheet created.Please Login or Register to view this content.
Thoughts?
Bookmarks