Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I write a lot of VBA excel reports for the company I work for and people like
to rename sheets and then complain when the macro doesn't work anymore. So I found out you can call the sheets by their number. Well here is my problem, I think the sheets have to be in the order that you put them in. What if someone moves the sheets arounds and ereases all the data. Is there a specific way to call sheets by the sheet number that are show in the VBA? For examples one of my sheets is called "Select a Group" and in VBA is is shown as Sheet5(Select a Group) Is there a way I can call the Sheet5 part because I know that will not change? Thanks |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Sheet5.Range("A2").value = 6
-- Regards, Tom Ogilvy " wrote in message ... I write a lot of VBA excel reports for the company I work for and people like to rename sheets and then complain when the macro doesn't work anymore. So I found out you can call the sheets by their number. Well here is my problem, I think the sheets have to be in the order that you put them in. What if someone moves the sheets arounds and ereases all the data. Is there a specific way to call sheets by the sheet number that are show in the VBA? For examples one of my sheets is called "Select a Group" and in VBA is is shown as Sheet5(Select a Group) Is there a way I can call the Sheet5 part because I know that will not change? Thanks |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Calling name of Sheet as a Variable? | Excel Worksheet Functions | |||
Calling a bit of code from a sheet errors | Excel Discussion (Misc queries) | |||
Calling Macros from another sheet without any hard coded references | Excel Programming | |||
Calling Text Boxes from a sheet | Excel Programming | |||
Calling Com addin from form button on sheet? | Excel Programming |