Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
I have code to open a file in a command button which works fine. What I would like to do is allow this button to also switch to this file if it is already open. I do not know how to write this so detailed help would be apprecitated. This is the code I have for opening the file. Private Sub CommandButton3_Click() ChDir "C:\My Documents\Pest Control Management System" Workbooks.Open Filename:= _ "C:\My Documents\Pest Control Management System\Pest Control Reporting Tool.xls" End Sub -- Leanne M (Aussie) (Changed Display name from Leanne) United Kingdom (Don''t ask me what an Aussie is doing living in the UK!) |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Hyperlink to an exe file with switch. | Excel Discussion (Misc queries) | |||
how do you switch from auto open | Excel Discussion (Misc queries) | |||
Open File or Switch Between Windows if File is Open | Excel Programming | |||
Open File or Switch Between Windows if File is Open | Excel Programming | |||
Open Excel from VB using Read-Only switch? | Excel Programming |