Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I want one macro to create a chart over a set the same amount of cells no matter what the worksheet or workbook is named. Is there some "activeworksheet" command that I can use in my code that will work no matter what the name is? So far the code is getting hung up on setting the source data with a specific worksheet name. any suggestion would be greatly appreiciated.
|
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi Ray:
ActiveSheet Regards, Vasant. "Ray Morton" wrote in message ... I want one macro to create a chart over a set the same amount of cells no matter what the worksheet or workbook is named. Is there some "activeworksheet" command that I can use in my code that will work no matter what the name is? So far the code is getting hung up on setting the source data with a specific worksheet name. any suggestion would be greatly appreiciated. |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
If I wanted to change this particular module:
Sheets("tanks006").select Sheets("tanks006").name="tanks" How would I go about doing this? I tried using activesheet and it didn't work. I want this name to be able to change to anything and still be able to change what ever it is to "Tanks" |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
If you want to select a particular sheet, you need to specify what the sheet
name is or some other way to identify it. ActiveSheet pertains to the currently visible sheet. Activesheet.Name = "tanks" will name the activesheet tanks. But the challenge is how to identify that it is tanks006 that you want to rename. The question is how you would identify the sheet you want to rename? -- Regards, Tom Ogilvy Ray Morton wrote in message ... If I wanted to change this particular module: Sheets("tanks006").select Sheets("tanks006").name="tanks" How would I go about doing this? I tried using activesheet and it didn't work. I want this name to be able to change to anything and still be able to change what ever it is to "Tanks" |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Sum Multiple Worksheets, same named cell | Excel Worksheet Functions | |||
Named Ranges - Multiple Worksheets | Excel Discussion (Misc queries) | |||
how to make a macro to clear multiple cells from multiple worksheets? | Excel Worksheet Functions | |||
same named range on multiple worksheets? | Excel Discussion (Misc queries) | |||
Need macro to copy a list of named cells between worksheets | Excel Worksheet Functions |