Close all Word documents opened without dialogs
Close all Word documents opened without dialogs
Close all Word documents opened without dialogs
Close all Word documents opened without dialogs
Close all Word documents opened without dialogs
Close all Word documents opened without dialogs Close all Word documents opened without dialogs Close all Word documents opened without dialogs Close all Word documents opened without dialogs Close all Word documents opened without dialogs Close all Word documents opened without dialogs Close all Word documents opened without dialogs Close all Word documents opened without dialogs
Close all Word documents opened without dialogs Close all Word documents opened without dialogs
Close all Word documents opened without dialogs
Go Back  Xtreme Visual Basic Talk > > > > Close all Word documents opened without dialogs


Reply
 
Thread Tools Display Modes
  #1  
Old 05-24-2015, 05:42 AM
Guerrero Guerrero is offline
Newcomer
 
Join Date: Aug 2010
Posts: 4
Default Close all Word documents opened without dialogs


Hey to All.

I would like to have a vb6 (or vb.net) function in order to CLOSE all opened documents but important: without any question/dialog, no worries about save pending or templates (normal.dot...) or so on.

Thus: Get a list of opened documents, get the name/path of the document and sends Close but programatically, without human intervention.

I've read the post about how to know if a document is opened in lock mode (but knowing previously the name and path).

Similar funcion (close documents without dialog) will be great also for Excel documents.

Best Wishes!
Reply With Quote
  #2  
Old 06-16-2017, 11:05 AM
Daigon Ali Daigon Ali is offline
Regular
 
Join Date: Aug 2014
Location: London
Posts: 59
Default

Once VB6 way would be to use Taskkill

For word:
Code:
Shell "taskkill.exe /f /t /im winword.exe"
For excel:
Code:
Shell "taskkill.exe /f /t /im excel.exe"
Reply With Quote
Reply

Tags
close, close documents, close word, word


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
Close all Word documents opened without dialogs
Close all Word documents opened without dialogs
Close all Word documents opened without dialogs Close all Word documents opened without dialogs
Close all Word documents opened without dialogs
Close all Word documents opened without dialogs
Close all Word documents opened without dialogs Close all Word documents opened without dialogs Close all Word documents opened without dialogs Close all Word documents opened without dialogs Close all Word documents opened without dialogs Close all Word documents opened without dialogs Close all Word documents opened without dialogs
Close all Word documents opened without dialogs
Close all Word documents opened without dialogs
 
Close all Word documents opened without dialogs
Close all Word documents opened without dialogs
 
-->