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

Howdie,

Basic VBA for renaming a sheet with value in cell e1 is:
ActiveSheet.Name = Range("e1").Value

Two sitns I want to:
a) rename sheet with say e1 and f1, and for a different sheet
b) rename sheet with e1 and the word test

any ideas..?

Thanks

D



*** Sent via Developersdex http://www.developersdex.com ***
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 709
Default Renaming a sheet

Darin, try this,

ActiveSheet.Name = Sheets("Sheet2").Range("E1") & _
Sheets("Sheet2").Range("F1")


ActiveSheet.Name = Sheets("Sheet2").Range("E1") & " test"


--
Paul B
Always backup your data before trying something new
Please post any response to the newsgroups so others can benefit from it
Feedback on answers is always appreciated!
Using Excel 2002 & 2003

"Darin Kramer" wrote in message
...
Howdie,

Basic VBA for renaming a sheet with value in cell e1 is:
ActiveSheet.Name = Range("e1").Value

Two sitns I want to:
a) rename sheet with say e1 and f1, and for a different sheet
b) rename sheet with e1 and the word test

any ideas..?

Thanks

D



*** Sent via Developersdex http://www.developersdex.com ***



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Renaming a sheet

ActiveSheet.Name = Range("e1").Value & Range("F1").Value

ActiveSheet.Name = Range("e1").Value & "test"

--
HTH

Bob Phillips

"Darin Kramer" wrote in message
...
Howdie,

Basic VBA for renaming a sheet with value in cell e1 is:
ActiveSheet.Name = Range("e1").Value

Two sitns I want to:
a) rename sheet with say e1 and f1, and for a different sheet
b) rename sheet with e1 and the word test

any ideas..?

Thanks

D



*** Sent via Developersdex http://www.developersdex.com ***



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
Prefix .xls] after renaming a sheet? Erchamion Excel Discussion (Misc queries) 6 April 25th 09 06:50 AM
Sheet renaming and use as data Ernst - EXE Graphics Excel Discussion (Misc queries) 10 July 25th 08 01:04 PM
Renaming a sheet [email protected] Excel Discussion (Misc queries) 3 May 30th 08 09:26 PM
Naming & renaming a sheet tab Cgbilliar Excel Worksheet Functions 1 November 7th 04 05:57 PM
renaming the active sheet tjtjjtjt[_2_] Excel Programming 1 January 27th 04 04:00 PM


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