Re: check if file already is open

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Hi Tom,
Thanks for your help. It seems to work in my routines.
Regards,
Mats
--
ESI Update


"Tom Ogilvy" wrote:

>
> 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
>
>
> --
> Regards,
> Tom Ogilvy
>
> "Mats Nilsson" <MatsNilsson@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
> news:22541DC5-9E2D-47B0-8721-7DCF2E0BD1C8@xxxxxxxxxxxxxxxx
> > Hi all,
> > In a vba routine a specific workbook has to be opened, but if it´s already
> > open (by another user) it shouldn´t be opened as read-only. Instead i will
> > interrupt the routine and give a msg "the file is already opened by
> another
> > user, the routine is interrupted". I cant find a method to check if the
> file
> > is open.
> > I have a similar question when updating PowerPoint slides from Excel. In
> > that case I will check if a specific power-point is opened.
> > Thanks in advance
> > Regards
> > Mats
> > ESI Update
>
>
>
.



Relevant Pages

  • Re: with random Nos calc how can I stop two different columns pre
    ... > Many thyanks but you sugest writting my own routine, ... > thanking you in anticipation regards ... >> Randbetween does not generate unique random numbers. ... >> Tom Ogilvy ...
    (microsoft.public.excel.programming)
  • Re: check if file already is open
    ... Macro Code to Check Whether a File Is Already Open ... Regards, ... > interrupt the routine and give a msg "the file is already opened by ...
    (microsoft.public.excel.programming)
  • Re: Advanced Filter Criteria Problem
    ... "Tom Ogilvy" wrote: ... > rather than just ABC ... >> I having a little problem with the output from a routine using the ...
    (microsoft.public.excel.programming)
  • Re: Excel VBA Write to xls ?
    ... I would like to open multiple xls files, manipulate them, and then save them ... I have a routine that I need to do on hundreds of files..and ... "Tom Ogilvy" wrote: ... >> Regards, ...
    (microsoft.public.excel.programming)
  • Re: with random Nos calc how can I stop two different columns pre
    ... Many thyanks but you sugest writting my own routine, ... thanking you in anticipation regards ... "Tom Ogilvy" wrote: ... > Randbetween does not generate unique random numbers. ...
    (microsoft.public.excel.programming)