Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Rename Active Sheet

I am using an input box to store a string which is
entered by the user as follows:

strCrossGroup = InputBox("Pool/Owner:")

I would then like the value which is entered by the user
to become the name of the ACTIVE worksheet (i.e. If I
enter "Jones" in the input box, I want the active sheet
to be renamed to "Jones"). My initial idea is something
as follows, although I am not sure how to finish it.
Thanks for your help.

Sheets(?).Select.Name = strCrossGroup
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 45
Default Rename Active Sheet

Hi Jason:

ActiveSheet.Name = strCrossGroup

Regards,

Vasant.


"Jason" wrote in message
...
I am using an input box to store a string which is
entered by the user as follows:

strCrossGroup = InputBox("Pool/Owner:")

I would then like the value which is entered by the user
to become the name of the ACTIVE worksheet (i.e. If I
enter "Jones" in the input box, I want the active sheet
to be renamed to "Jones"). My initial idea is something
as follows, although I am not sure how to finish it.
Thanks for your help.

Sheets(?).Select.Name = strCrossGroup



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Rename Active Sheet


Did you try

ActiveSheet.Name = strCrossGroup

?

Robbie

-----Original Message-----
I am using an input box to store a string which is
entered by the user as follows:

strCrossGroup = InputBox("Pool/Owner:")

I would then like the value which is entered by the user
to become the name of the ACTIVE worksheet (i.e. If I
enter "Jones" in the input box, I want the active sheet
to be renamed to "Jones"). My initial idea is something
as follows, although I am not sure how to finish it.
Thanks for your help.

Sheets(?).Select.Name = strCrossGroup
.

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 Linda@VZ Excel Discussion (Misc queries) 1 November 2nd 05 12:43 PM


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