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 March 13th, 2007, 08:49 AM
Registered User
 
Join Date: Mar 2007
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default Macro in .dot file produces error...

I have created a .dot file for my employers that contains functions that add a toolbar and button to Word. When the button is clicked, it displays a dialog box so users can insert text into the active document. It has been distributed throughout the company and has worked fine on all the systems on which it has been installed... except one. On that one system, the following error appears whenever the button is clicked to bring up the dialog box:

Compile error in hidden module: GlossaryMethods

The error only comes up on this one system and I can't imagine why or what might be different about the way Word is installed on this one machine that might cause a problem. When I ask for help on the error message, it says something about a protected module but I'm pretty sure that I didn't protect the module. Any idea what I might look for in order to resolve this issue?
 
Old March 13th, 2007, 09:04 AM
Friend of Wrox
 
Join Date: Sep 2005
Posts: 812
Thanks: 1
Thanked 53 Times in 49 Posts
Default

The GlossaryMethods module might be using some library functions(DLLs) that might not be available in the machine causing the error. You need to install those libraries and register them.



http://www.vbadud.blogspot.com
 
Old March 13th, 2007, 09:23 AM
Registered User
 
Join Date: Mar 2007
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

My first reaction to your reply was that I would certainly be sure to distribute any DLLs I had created along with the template. Then I remembered something and, sure enough, you hit the nail right on the head. I explicitly create an MSXML 6.0 object and the problem system doesn't have MSXML 6.0 installed.

Thanks!





Similar Threads
Thread Thread Starter Forum Replies Last Post
execute an excel macro via a .vbs file ismailc VB.NET 2002/2003 Basics 1 January 11th, 2007 04:19 PM
copyFromRecordset error Excel macro maaron SQL Server ASP 0 August 11th, 2006 08:44 AM
GetThumbnailImage produces a larger file jacob C# 3 November 13th, 2005 01:45 PM
vb macro output file to excel mateenmohd VBScript 0 March 21st, 2005 12:34 AM
Macro to copy data from one file to a 2nd file chadpodsednik Excel VBA 1 October 29th, 2004 10:40 AM





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