![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
New Member
Join Date: Mar 2002
Location: rejdus@hotmail.com
Posts: 18
|
I have three following worsheets:
welcomepage.xls as~project~witoutpics1.xls database~as212.xls These files are located on my desktop. In the welcom page i have a button which i want in a way that after i click on it two other worksheets opens. The example below is the macro i recorded using key strokes however is is not working. Anyone knows an alternative please help. Sub ENTERTOMAINMENU_BUTTON() ' ' ENTERTOMAINMENU_BUTTON Macro ' Macro recorded 11/04/2002 by Radek Ilendo ' ' Windows("As~project~witoutpics.xls").Activate Range("G4").Select Sheets("Main menu").Select End Sub |
|
|
|
|
|
#2 |
|
Board Regular
Join Date: Feb 2002
Location: Stockton, California
Posts: 281
|
you said you want worksheets to open, do you mean the other workbooks? if so, heres the code to open a workbook:
Workbooks.Open Filename:="C:PathFileName.xls" |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|