LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Renaming worksheet tabs

Hi
I dont know if anyone can help me, but I am having problems
renaming the worksheet tabs on a spreadsheet.

I have set up a procedure that when run, opens a dialog box
and asks the user to input a name into a text box.
This name is then copied and pasted to a cell on a worksheet.

I then take a copy of an existing worksheet, and the
intention is to get Excel to automatically rename the new
copy with the name entered in the text box and pasted to
the sheet (if you see what I mean).

I am using the following code to try this last part:

Sheets("WORKSHEET").Select
Range("A1").Select ----- cell holding the name
Selection.Copy
Sheets("NEWWORKSHEET").Select ----new copy of the sheet
Sheets("NEWWORKSHEET").Name = ???????

It is the ????? I cannot seem to do. If I record a macro
of me copying the name and pasting it, the code comes out
with the actual text, not a generic "whatever is on the
clipboard".

Is there a simple way of adding this to the code, so that
whatever is entered in cell A1 can be used to rename the
worksheet??

Thanks in advance for your help

Dave
 
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
Renaming Tabs in a Macro Liz C Excel Discussion (Misc queries) 3 October 30th 08 04:29 PM
Renaming Multiple Tabs britt@wjg Excel Worksheet Functions 1 October 8th 08 12:19 AM
Renaming Tabs Lakebum Excel Discussion (Misc queries) 3 December 26th 06 09:43 PM
renaming worksheet tabs calibronco Excel Discussion (Misc queries) 7 November 26th 05 01:02 AM
Renaming Tabs ANDY73 Excel Discussion (Misc queries) 5 July 28th 05 09:42 AM


All times are GMT +1. The time now is 02:10 AM.

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"