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

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Calling a Sheet

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
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
Calling name of Sheet as a Variable? thekeytothedoor Excel Worksheet Functions 1 January 1st 10 08:48 AM
Calling a bit of code from a sheet errors gearoi Excel Discussion (Misc queries) 2 September 6th 05 08:21 PM
Calling Macros from another sheet without any hard coded references [email protected] Excel Programming 4 February 22nd 05 03:44 PM
Calling Text Boxes from a sheet Jordan Excel Programming 2 February 21st 05 02:27 PM
Calling Com addin from form button on sheet? Robin Hammond[_2_] Excel Programming 8 January 8th 05 03:03 AM


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