Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Microsoft Office > Other Office > Word VBA
|
Word VBA Discuss using VBA to program Word.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Word 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 June 22nd, 2011, 11:59 AM
Registered User
 
Join Date: Jun 2011
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Issue with using Reference .dot

From a third party application, we open word and it does the following:

1) Tries to copy a document template called Code.dot from the Master directory locally.

2) Attaches a reference to this template, Code.dot.

3) Runs Code.

The code.dot is where all of the functionality of the template is contained, so it cannot be released immediately.

However, when we save it, which is part of Code.dot programming, it saves it into a specific directory.

If I do not release the reference Code.dot before I save it. Because the third party software is holding on to its functionality, it will not allow the local copy of the Code.dot to be overwritten.

If I do release the reference to Code.dot before I save it, the problem becomes that as soon as I release it, the code stops and the code doesn't finish.

So I need to figure out an event where I can release the code.





Similar Threads
Thread Thread Starter Forum Replies Last Post
What is "Reference to a non-shared member requires an object reference"? Waterharbin Visual Basic 2008 Essentials 2 November 14th, 2010 09:48 PM
Script Reference profiler issue luckystar BOOK: Professional ASP.NET 3.5 SP1 Edition: In C# and VB 0 June 25th, 2009 11:48 AM
Null reference issue Abbas C# 1 March 19th, 2007 11:39 PM
adding a reference in dot net app [email protected] C# 2005 1 November 2nd, 2005 04:35 PM
Web Service Reference Issue eshyong .NET Web Services 1 November 2nd, 2003 12:11 AM





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