Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Microsoft Office > Access and Access VBA > Access VBA
|
Access VBA Discuss using VBA for Access programming.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access VBA 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 September 22nd, 2010, 12:04 PM
Authorized User
 
Join Date: Oct 2003
Posts: 25
Thanks: 1
Thanked 0 Times in 0 Posts
Default Error: This command is not available because no document is open.

We are merging data with a Word doc. Depending on certain conditions, we insert a secind doc and merge more data.

I have been using this this code to do this

Set objWord = GetObject(, "Word.Application")
Set oDoc = objWord.ActiveDocument

It looks like the doc may not be active. Is there a way to activate it without openning a new instance?
Anyone have any thoughts?

Thanks

Last edited by RayL; September 27th, 2010 at 02:40 PM.. Reason: New info





Similar Threads
Thread Thread Starter Forum Replies Last Post
IE open document reference bobbyastrain Pro VB 6 1 December 30th, 2007 08:47 AM
how to print ms word document from command prompt? priya7.priya C# 0 October 4th, 2007 08:24 AM
Open document, Open second doc and copy to first justabeginner Word VBA 1 March 7th, 2007 02:47 AM
document.open() issue fs22 Javascript 8 September 16th, 2004 09:07 PM
faild to open document polash Crystal Reports 0 March 22nd, 2004 06:18 PM





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