Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Calling active sheet from another sheet will return the name of it's
self, it's a class modual, try running the same code from a standard modual vis: Public Sub InAStanardModual() Sheet1.Activate MySheet = ActiveSheet.Name End Sub wil return the name of sheet one. another way would be to use the code name, as shown in the vbe window: sheet1(MyWorkSheetName) where the "MyWorkSheetNAme" is the name of the worksheet on the tab. to call a procedure in a standard modual you simple add the name of the procdure to the calling event, i.e Button1_click InAStanardModual end sub would run the about code from modual1 good luck ross |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
determining running counts | Excel Worksheet Functions | |||
running code | New Users to Excel | |||
Determining the Selection on a non-active Sheet? | Excel Programming | |||
Running Code on Each Sheet in an Excel Workbook | Excel Programming | |||
running VB code | Excel Programming |