Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 24
Default Activate sheet in another workbook by its code name

Is it possible to activate a sheet in workbook1 by a procedure written in
workbook2 by its code name??
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,420
Default Activate sheet in another workbook by its code name

With Workbooks("Some Other Book.xls")
.Worksheets(CStr(.VBProject.VBComponents("TheSheet CodeName").Properties("Name"))).Activate
End With


--
__________________________________
HTH

Bob

"AshMorK" wrote in message
...
Is it possible to activate a sheet in workbook1 by a procedure written in
workbook2 by its code name??



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35
Default Activate sheet in another workbook by its code name

Workbooks("Book2").Sheets("Sheet1").Activate

This will activate the workbook as well.

"AshMorK" wrote:

Is it possible to activate a sheet in workbook1 by a procedure written in
workbook2 by its code name??

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
Run Code on Activate Sheet Theresa Excel Programming 6 December 18th 07 03:33 AM
Activate code when sheet is deleted Karen53 Excel Programming 1 September 6th 07 03:06 PM
Debug code in workbook open or activate events clara Excel Programming 4 May 22nd 07 07:27 PM
WorkBook Open & Sheet Activate jimmy[_5_] Excel Programming 1 May 8th 07 06:26 PM
Run a sheet's activate code when entering it's workbook mikeburg[_54_] Excel Programming 2 December 3rd 05 05:50 AM


All times are GMT +1. The time now is 11:46 AM.

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"