Here is more detail for you...
Open up a blank Excel sheet and launch VBA. Add a new
module to the 'PERSONAL.XLS' file. [You must use this to
make it universally applicable to all Excel files]
Type in the following code...
Sub Macro1()
ChDir "C:\Documents and Settings\YOUR NAME\Desktop"
Workbooks.Open Filename:="C:\Documents _ and
Settings\YOURNAME\Desktop\YOURFILE.xls"
End Sub
You will need to specify the correct file path. In the
above I am assuming the Excel file is on your desktop.
You will need to amend the above for your name, name of
Excel file, location on computer etc.
Once you have your Macro written, I suggest the following
as a guide.
On your Excel worksheet place the mouse over the <File>
menu and right-click. Then select customise. Click <File>
and where is shows the <File Open...> icon hold down CTRL
and drag the icon to create a copy. Place the duplicate
wherever you want it.
Now click the duplicate and select <Assign Macro>. Select
the Macro you just built. Also in the menu you can change
the display so that it reads, for example, Open XYZ Excel
file. The whole point is that you can now personalise
your toolbar. When finish just click anywhere on the
Excel spreadsheet.
Now whenever you open Excel you can go to the File menu
and there will be a specific command to open the Excel
sheet you use everyday. You could repeat this for the
other Excel sheet you have. Alternatively, just duplicate
the code of the original Macro so that your Macro is a
command to open both files.
This is just one way of solving your problem and making
life easier.
Please respond if you need further guidance. It is pretty
straightforward but if you haven't done this before it
may seem tricky. I check back to posts on a regular basis.
Alex
-----Original Message-----
I have two workbooks I open every day. I'm try to see if there is away to
put two buttons in Excel that would open the selected workbook.
Any suggestions? Is this possible? Macros seem to be stored in a workbook
so that doesn't seem to help.
.