Wrox Programmer Forums
|
VB How-To Ask your "How do I do this with VB?" questions in this forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB How-To section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 27th, 2004, 02:29 PM
Registered User
 
Join Date: Dec 2003
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Word

Hello,
 I am generating a word document and I want to be able to check and see if someone else has the document open already. Is there any code that does this.

Thanks in advance
Scott

 
Old January 29th, 2004, 09:52 AM
Registered User
 
Join Date: Jan 2004
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to IgorT
Default

You could use GetObject ("Word.Application") method...
It returns a handle of Word Application, if the word is running
then you will receive a handle and can access its documents. If Word isn't running you sould receive... 429 error

Hope it helps
good luck






Similar Threads
Thread Thread Starter Forum Replies Last Post
Dot net - Converting word to pdf and pdf to word Manoah Classic ASP Basics 2 July 7th, 2008 10:21 PM
Help with word art Hoang Excel VBA 1 March 14th, 2008 04:24 PM
Creating word doc - word behaviour mat41 Classic ASP Professional 2 April 29th, 2007 06:46 PM
Word Macro Arul20 Beginning VB 6 1 June 6th, 2005 08:18 AM
Copy word to word doc. in VB vamshi Pro VB 6 1 March 24th, 2004 06:25 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.