How to close a locked document?

vb.net , vba , word vba , closing a document , lock India
  • 11 years ago
    Hi All, I am writing a macro in excel, which opens a word document present is some path. if that file is already in use, then my macro should close the file. can any one tell me how can i do this???

Post a reply

No one has replied yet! Why not be the first?

Sign in or Join us (it's free).

Contribute

Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“The most exciting phrase to hear in science, the one that heralds new discoveries, is not 'Eureka!' but 'That's funny...'” - Isaac Asimov