Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default 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   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5,441
Default 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   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default 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   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5,441
Default 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
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
I need to copy a text value from one worksheet to another Toria Excel Discussion (Misc queries) 5 November 14th 06 02:55 PM
Best Approach to Worksheet Synchronization mjones Excel Discussion (Misc queries) 7 November 8th 06 11:39 AM
Need data from one worksheet to be in a list in another worksheet. Kris R Excel Discussion (Misc queries) 8 September 14th 06 02:15 AM
Search/Match between 2 x separate Worksheets and populate result in third worksheet Alan Bartley Excel Discussion (Misc queries) 1 April 11th 05 05:21 AM
Weekly Transaction Processing Ralph Howarth Excel Worksheet Functions 4 January 19th 05 05:37 AM


All times are GMT +1. The time now is 09:01 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"