LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Using Macro to Select Worksheet

I would like to select a worksheet based on a value in a specific cell, I
have tryed everything I know and am unable to accomplish. Here is the code.

Note: There are 8 different workbooks I am trying to move between and I
have already opened all with a macro command. I am using the workbook Weeky
Setup as my "home". The names of the workbooks change every week.

Sub SelectAIM()
Windows("Weekly Setup.xls").Activate
Dim SelectAIM As Name
Set Name = Worksheets("Sheet1").Range("E2")
Windows(SelectAIM).Activate
End Sub

Worksheet "Weekly Setup.xls" is my "master" workbook.
I want to select the workbook as defined in cell "E2" in Weekly Setup

 
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
select worksheet and run macro Hammah Excel Programming 7 February 1st 12 01:03 AM
Select Worksheet to print Macro Angel_24477616 Excel Worksheet Functions 0 March 19th 07 12:56 PM
why does this macro select the entire worksheet when run? Dave F Excel Discussion (Misc queries) 6 March 1st 07 01:19 PM
select worksheet to run macro Hidaya Excel Discussion (Misc queries) 5 December 1st 04 11:54 PM
Help Please! Macro Error on Select Worksheet Apressler Excel Programming 1 September 23rd 04 04:58 PM


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