LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default Create a new worksheet with a macro and giving it a specific name

I'm trying to create a new worksheet with a macro where the worksheet has a
specific name. However, when the macro creates the worksheet, it creates one
with the name "SheetXX". I can continue the macro to rename "SheetXX" to the
specific name I want, but captured in the macro is referenece to "SheetXX".
When I run the macro again, it creates a new worksheet with the name
"SheetXX+1" and then bombs out because it can't find "SheetXX" to rename it
to the specific name that I want.
Anyway to to have the macro create the new worksheet with the specific name
without having to have the Excel generated "SheetXX" name and then having to
rename it to the specific name?
Thanks for your help.
Steve Krieger
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to run specific macro on selected worksheet? Harshad[_2_] Excel Discussion (Misc queries) 2 October 31st 08 06:56 AM
Macro to Move Specific Data to Another Worksheet jeannie v Excel Worksheet Functions 1 January 20th 08 06:30 PM
make a macro 'worksheet specific' Lori Excel Discussion (Misc queries) 11 October 29th 07 12:38 AM
How do you create a menu for just that specific worksheet? gregesau Excel Discussion (Misc queries) 1 January 1st 07 01:18 AM
Help with a macro to open to a specific worksheet EAHRENS Excel Worksheet Functions 0 November 30th 05 08:36 PM


All times are GMT +1. The time now is 03:14 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"