+ Reply to Thread
Results 1 to 2 of 2

Code to check wether a file is already open

  1. #1
    Registered User
    Join Date
    09-21-2012
    Location
    Mumbai, India
    MS-Off Ver
    Excel 2003
    Posts
    93

    Code to check wether a file is already open

    Hello experts

    I am attaching herewith 2 files . One is monthly and other one is yearly.

    What i am doing is this :
    in monthly file I have 3 command buttons.
    1 to delete records where tonnage is zero
    2 to transfer(copy & paste) monthly records to yearly file
    3 to delete records from the monthly file.

    every thing is working fine except that in command button 2 i want to check wether yearly file is already open.
    if it is open proceed further
    if it is not open, open it and proceed further.

    any help ?

    kmahesh
    Attached Files Attached Files

  2. #2
    Forum Contributor LokeshKumar's Avatar
    Join Date
    03-31-2015
    Location
    India
    MS-Off Ver
    All, mostly 2010 now..
    Posts
    471

    Re: Code to check wether a file is already open

    Hey

    I was just having the same issue and I google it found it following....
    Please Login or Register  to view this content.
    Lokesh Kumar
    Stay Hungry.. Stay Foolish..
    _________________________________________________________
    Please Click STAR to Add Reputation if my/someone's answer helped!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Check if a Word File is Open and If Open Close it with Excel VBA.
    By e4excel in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-10-2012, 11:14 AM
  2. Need Macro to check and see if PDF file is already open and if so then ends code
    By eleiprecht in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-10-2012, 11:38 AM
  3. VBA for excel 2003. Open file dialog box, open 2007 file xlsx, continue with code
    By rain4u in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-25-2011, 12:12 AM
  4. Check if file is open and open if closed
    By Jockster in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-22-2010, 08:18 AM
  5. Check to see if file is open, and if it is open, activate it
    By karen000 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-15-2009, 03:59 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1