Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Renaming a Worksheet with a macro... but...

Hello all, I am trying to rename a sheet in a macro but I
want the sheet name to be taken in a specific cell.

For example, I have "Hello: in cell a1 and want my macro
to create a new worksheet and name it "hello" (hello might
change to something else)

How can I do that?

Thanks

Pitbull
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default Renaming a Worksheet with a macro... but...

Try something like


Worksheets.Add.Name = Worksheets("Sheet1").Range("A1").Text


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com



"Pitbull at Work" wrote in
message ...
Hello all, I am trying to rename a sheet in a macro but I
want the sheet name to be taken in a specific cell.

For example, I have "Hello: in cell a1 and want my macro
to create a new worksheet and name it "hello" (hello might
change to something else)

How can I do that?

Thanks

Pitbull



Reply
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
Worksheet Renaming Eric Excel Discussion (Misc queries) 2 July 26th 07 02:44 PM
Worksheet Renaming Eric Excel Worksheet Functions 1 July 26th 07 02:38 PM
Get macro to run on any worksheet without renaming the sheet? Andrew B Excel Discussion (Misc queries) 6 July 26th 06 03:03 AM
need help renaming a worksheet jonwyn Excel Discussion (Misc queries) 2 March 1st 05 08:34 PM
renaming worksheet from within macro Mark w Excel Programming 2 May 17th 04 03:41 AM


All times are GMT +1. The time now is 03:12 AM.

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

About Us

"It's about Microsoft Excel"