Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Is file opened?
How can I see if an Excel file is already opened
Because when it is I can't save a new one with the same name Many thx in advanc DonaldVdD |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Is file opened?
-- HTH Bob Phillips ... looking out across Poole Harbour to the Purbecks (remove nothere from the email address if mailing direct) "DonaldVdD" wrote in message ... How can I see if an Excel file is already opened? Because when it is I can't save a new one with the same name. Many thx in advance DonaldVdD |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Is file opened?
Donald,
Here is a simple function you can use Function IsFileOpen(wb As String) Dim oWb As Workbook On Error Resume Next Set oWb = Workbooks(wb) On Error GoTo 0 IsFileOpen = Not oWb Is Nothing End Function Works like this MsgBox IsFileOpen("Premiership 2003.xls") -- HTH Bob Phillips ... looking out across Poole Harbour to the Purbecks (remove nothere from the email address if mailing direct) "DonaldVdD" wrote in message ... How can I see if an Excel file is already opened? Because when it is I can't save a new one with the same name. Many thx in advance DonaldVdD |
#4
Posted to microsoft.public.excel.programming
|
|||
|
|||
Is file opened?
http://support.microsoft.com?kbid=138621 XL: Macro Code to Check Whether a File Is Already Open http://support.microsoft.com?kbid=291295 XL2002: Macro Code to Check Whether a File Is Already Open http://support.microsoft.com?kbid=213383 XL2000: Macro Code to Check Whether a File Is Already Open http://support.microsoft.com?kbid=184982 WD97: VBA Function to Check If File or Document Is Open Will check if it is open. -- Regards, Tom Ogilvy "DonaldVdD" wrote in message ... How can I see if an Excel file is already opened? Because when it is I can't save a new one with the same name. Many thx in advance DonaldVdD |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
go last row when file is opened | Excel Discussion (Misc queries) | |||
file links incorrect when file is re-opened | Excel Worksheet Functions | |||
When was file last opened? | Excel Worksheet Functions | |||
cannot open the excel file, the file is already opened | Excel Discussion (Misc queries) | |||
Copying the Editing in one file to Another opened XLS file | Excel Worksheet Functions |