Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.misc
|
|||
|
|||
Activating a Worksheet?
WorkbookA has a worksheet with a column of cells listing the names of
worksheets in WorkbookB. How can I activate the worksheet in B that matches the active cell on the list in WorkbookA? |
#2
Posted to microsoft.public.excel.misc
|
|||
|
|||
Activating a Worksheet?
Kenny,
Run this when WorkbookA is active, with the sheet with the names active, and the selection made: Sub ActivateSheet() Dim myShName As String myShName = Selection(1).Value Workbooks("WorkbookB.xls").Activate Worksheets(myShName).Activate End Sub HTH, Bernie MS Excel MVP "Kenny R" wrote in message ... WorkbookA has a worksheet with a column of cells listing the names of worksheets in WorkbookB. How can I activate the worksheet in B that matches the active cell on the list in WorkbookA? |
#3
Posted to microsoft.public.excel.misc
|
|||
|
|||
Activating a Worksheet?
Thank You very much---worked great...Kenny
"Bernie Deitrick" wrote: Kenny, Run this when WorkbookA is active, with the sheet with the names active, and the selection made: Sub ActivateSheet() Dim myShName As String myShName = Selection(1).Value Workbooks("WorkbookB.xls").Activate Worksheets(myShName).Activate End Sub HTH, Bernie MS Excel MVP "Kenny R" wrote in message ... WorkbookA has a worksheet with a column of cells listing the names of worksheets in WorkbookB. How can I activate the worksheet in B that matches the active cell on the list in WorkbookA? |
#4
Posted to microsoft.public.excel.misc
|
|||
|
|||
Activating a Worksheet?
Kenny,
You're quite welcome... glad to hear that you got it to work. Bernie MS Excel MVP "Kenny R" wrote in message ... Thank You very much---worked great...Kenny "Bernie Deitrick" wrote: Kenny, Run this when WorkbookA is active, with the sheet with the names active, and the selection made: Sub ActivateSheet() Dim myShName As String myShName = Selection(1).Value Workbooks("WorkbookB.xls").Activate Worksheets(myShName).Activate End Sub HTH, Bernie MS Excel MVP "Kenny R" wrote in message ... WorkbookA has a worksheet with a column of cells listing the names of worksheets in WorkbookB. How can I activate the worksheet in B that matches the active cell on the list in WorkbookA? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
I need to copy a text value from one worksheet to another | Excel Discussion (Misc queries) | |||
Best Approach to Worksheet Synchronization | Excel Discussion (Misc queries) | |||
Need data from one worksheet to be in a list in another worksheet. | Excel Discussion (Misc queries) | |||
Search/Match between 2 x separate Worksheets and populate result in third worksheet | Excel Discussion (Misc queries) | |||
Weekly Transaction Processing | Excel Worksheet Functions |