+ Reply to Thread
Results 1 to 6 of 6

Check if a Word File is Open and If Open Close it with Excel VBA.

  1. #1
    Registered User
    Join Date
    11-03-2008
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    2,521

    Check if a Word File is Open and If Open Close it with Excel VBA.

    Check if a Word File is Open and If Open Close it with Excel VBA.

    Dear Forum,

    I want to close a Word File from Excel with the help of a MAcro/VBA if its already open and if its not open then just leave at that,

    Please help me with a code.

    Warm regards
    e4excel
    Last edited by e4excel; 07-31-2011 at 03:06 AM.

  2. #2
    Forum Expert Kenneth Hobson's Avatar
    Join Date
    02-05-2007
    Location
    Tecumseh, OK
    MS-Off Ver
    Office 365, Win10Home
    Posts
    2,573

    Re: Check if a Word File is Open and If Open Close it with Excel VBA.

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    11-03-2008
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    2,521

    Re: Check if a Word File is Open and If Open Close it with Excel VBA.

    Dear Kenneth,

    It works well however it keeps an instance of WOrd Open which has no doc or Blank Word..

    can that be closed too?

    Warm regards
    e4excel

  4. #4
    Forum Expert Kenneth Hobson's Avatar
    Join Date
    02-05-2007
    Location
    Tecumseh, OK
    MS-Off Ver
    Office 365, Win10Home
    Posts
    2,573

    Re: Check if a Word File is Open and If Open Close it with Excel VBA.

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    11-03-2008
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    2,521

    Re: Check if a Word File is Open and If Open Close it with Excel VBA.

    Thanks a lot Kenneth thats exactly what I wanted now, I can check the file while running the Macro again and again..

    Warm REgards
    e4excel

  6. #6
    Registered User
    Join Date
    12-10-2012
    Location
    Italy
    MS-Off Ver
    Excel 2010
    Posts
    1

    Re: Check if a Word File is Open and If Open Close it with Excel VBA.

    than you A LOT! It works like a charm (sorry to reply to a such old thread, I'm a newbie and this solution is Exactly what I was in search of for several hours...)

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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