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: 3
Default Assign a name to worksheet tabs by code

How would you write this if you are wanting the tab to be named for a specific cell, of another worksheet in the same workbook?

----- JMMach, MCSC wrote: -----

Sub RenameSheetTab()
ActiveSheet.Name = "New Name"
'or
Sheets("New Name").Name = "Renamed"
'where "New Name" is the existing name on the sheet tab
'or
Sheet3.Name = "New Sheet3"
'where "Sheet3" is the name of the Microsoft Excel Object in the VBE
Project Explorer
'The Microsoft Excel Objects are listed as ObjectName(SheetTabName)
'example: Sheet3(New Sheet3)
End Sub

TTFN
JMMach

"hglamy" wrote in message
...
Hello there,
how can I - if at all - name or rename

XL worksheet tabs programmatically ?
Thank you in advance,
Kind regards,
H.G. Lamy

 
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 do I color code worksheet tabs please? thenamesjack Excel Discussion (Misc queries) 3 December 19th 08 08:09 PM
Assign a code to a range of time Elizabeth Excel Worksheet Functions 15 October 28th 07 06:42 PM
Should be able to color code or highlight Excel worksheet tabs. brie_01 Excel Worksheet Functions 3 August 17th 06 03:42 PM
Assign code to button Nic[_2_] Excel Programming 3 February 22nd 04 10:49 AM
Assign code to shape Jacob Excel Programming 1 November 4th 03 02:53 PM


All times are GMT +1. The time now is 03:06 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"