Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Writing a macro to avoid openeing the same file in excel.
|
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Dim wkbk as Workbook
On Error Resume Next set wkbk = Workbooks("MyFile.xls") On Error goto 0 if wkbk is nothing then set wkbk = Workbooks.open Filename:= _ "C:\MyFolder\MyFile.xls" End if wkbk.Activate -- Regards, Tom Ogilvy "Steven Chan" wrote in message ... Writing a macro to avoid openeing the same file in excel. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Excel workbook is corrupted, workbook automatically saves on start | Excel Discussion (Misc queries) | |||
Select sheet tabs in workbook & save to separate workbook files | Excel Worksheet Functions | |||
Copy a range of cells in an unopened workbook and paste it to the current workbook | Excel Programming | |||
Open a password protected excel workbook from second workbook to fetch data using dynamic connection | Excel Programming | |||
What commands do you use to name a workbook, save a workbook,open a workbook | Excel Programming |