Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
No Name
 
Posts: n/a
Default Rename current sheet

How do I rename the current sheet.

This is what I have, but if sheet1 has already been
renamed, it won't work. Thank you.

Sheets("Sheet1").Name = "Linefile"
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Rename current sheet


Activesheet.Name = "Line"

But see your other question about naming as we add.

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

wrote in message
...
How do I rename the current sheet.

This is what I have, but if sheet1 has already been
renamed, it won't work. Thank you.

Sheets("Sheet1").Name = "Linefile"



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default Rename current sheet

Hi ?

You can't have two sheets with the same name
See my answer in your other thread

--
Regards Ron de Bruin
http://www.rondebruin.nl


wrote in message ...
How do I rename the current sheet.

This is what I have, but if sheet1 has already been
renamed, it won't work. Thank you.

Sheets("Sheet1").Name = "Linefile"



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,089
Default Rename current sheet

activesheet.name = "test"

Regards

Trevor


wrote in message
...
How do I rename the current sheet.

This is what I have, but if sheet1 has already been
renamed, it won't work. Thank you.

Sheets("Sheet1").Name = "Linefile"



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
how do i rename a sheet if the rename tab is inactive? Nelson Excel Worksheet Functions 1 March 3rd 10 10:28 AM
macro to: Add new sheet, then rename new sheet with todays date Paul Excel Worksheet Functions 3 September 29th 07 03:17 AM
Move data to new sheet - rename sheet based on criteria ? [email protected] Excel Discussion (Misc queries) 7 May 16th 07 10:22 PM
VBA rename sheet. paulrm906 Excel Discussion (Misc queries) 3 March 12th 06 12:18 PM
Rename sheet slc[_8_] Excel Programming 2 April 16th 04 10:54 AM


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