Re: Problems reading Custom Properties with word Macro

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Cindy M -WordMVP- (C.Meister-C_at_hispeed.ch)
Date: 09/10/04


Date: Fri, 10 Sep 2004 16:09:00 +0200

Hi ILoveInternet,

> The Marco is placed in a .dot-file in a project and opened in the word
> document. The word document then has the macro in the file and other
> users do not have to have this .dot file to run the macro.
>
This is an incorrect assumption. If the macro is in the DOT file, it
remains in the .dot file and is not transferred to the document. So
every user who uses a document created from the *.dot file must also
have access to the *.dot file in order for the macro to run/be
available.

Furthermore, you don't show us the code that works with the custom
document properties. Depending on how the macro is addressing the
properties, it's quite possible that it's actually manipulating the
properties in the *.dot file, rather than in the document, itself?

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 8 2004)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question
or reply in the newsgroup and not by e-mail :-)



Relevant Pages

  • RE: Repeating Headers Footers and tables across multiple documents?
    ... My first reaction to your problem was to set up an Access database where you ... problem the more I came back to VBA. ... (For this first macro, just accept the name. ... > project specific .dot file that is then opened and used to create the ...
    (microsoft.public.word.pagelayout)
  • Glitch in .dot forms with a macro when saving as docx.
    ... then saving the form as a .docx file. ... and are saved as a .dot file as not all of the people who ... The forms include a macro that allows you to run spell check as I received ...
    (microsoft.public.word.docmanagement)
  • RE: Repeating Headers Footers and tables across multiple documents
    ... I enjoy learning more about the ways macros and VBA can help ... I really appreciate your response. ... > (For this first macro, ... >> project specific .dot file that is then opened and used to create the ...
    (microsoft.public.word.pagelayout)
  • Re: macro not opening dot file as document1
    ... When you double-click a .dot file, the default action is New rather than ... If you have a macro to *open* the file, ... Word MVP FAQ site: http://word.mvps.org ... please post all follow-ups to the newsgroup so ...
    (microsoft.public.word.docmanagement)
  • RE: Error: 5981 Cannot Find Macro Storage
    ... I noticed a few times, while using Macro Recorder, that you can ... a macro and was very careful to store it in the current document. ... after I clicked Keyboard to specify a keyboard ... > I tried storing the .DOT file on the C: drive to which the user has Admin ...
    (microsoft.public.word.application.errors)