Google Answers Logo
View Question
 
Q: INSTALLING/RE-INSTALLING MS WORD MACROS ON LOCAL WORKSTATIONS (or on Exchange) ( No Answer,   1 Comment )
Question  
Subject: INSTALLING/RE-INSTALLING MS WORD MACROS ON LOCAL WORKSTATIONS (or on Exchange)
Category: Computers > Programming
Asked by: asapbob-ga
List Price: $20.00
Posted: 05 Aug 2005 06:36 PDT
Expires: 04 Sep 2005 06:36 PDT
Question ID: 552028
We need to overwrite corrupted MS Word macros with good code (we
already have the good code).  These .bas files interact with MS Word
by executing format-standardizing keystrokes into a .dot file. 
Unfortunately the .bas code on each workstation is unstable and has
been corrupted, so we need to re-install these macros.  Problem is
that cutting and pasting code into Word's 'record macro' feature
records the copy/paste keystrokes, not the executable VB commands.

How and where do we overwrite the corrupted .bas file with the good
code?  As mentioned above, we have the good VB code but can't find the
location in MS Word's architecture for re-installing it.  Originally
these files were set up for 'drag-and-drop' update capability on our
Exchange server, but we'd be willing to simply re-install the good
code on each machine if possible.

Thanks.

Request for Question Clarification by maniac-ga on 07 Aug 2005 21:07 PDT
Hello Asapbob,

I am a little uncertain about the Exchange server connection as well,
but you should be able to do something like the following:

Open a word file.
Use the menu item
  Tools -> Macros -> Visual Basic Editor
at this point, Visual Basic will start. Hopefully it will show a
window with your macros in it. On my system, I get a window labeled
  "Normal - New Macros (code)"
where I can see the macros I have on my system (stored in the Normal
template file) but on your systems, this is not necessarily the case.
If the module window is shown, you can then copy / paste the new
macros over the old ones. Use the menu
  File -> Save Normal
  File -> Close and Return to Microsoft Word
to save the changes / get back to word.

If not, you will have to do something more to get to the old
(corrupted) macros. One method that "always works" for me is the
following sequence.
  Tools -> Macro -> Macros
select one of the corrupt macros and then Step
at this point Visual Basic should run and the first part of the
corrupt macro will be displayed. Use menu
  Run -> Reset
to stop execution and then copy / paste, save, and return to word as
described above.

Let me know if this does the job for you so I can post a complete
answer. If not, describe the problems you have so I can correct the
information provided.

  --Maniac
Answer  
There is no answer at this time.

Comments  
Subject: Re: INSTALLING/RE-INSTALLING MS WORD MACROS ON LOCAL WORKSTATIONS (or on Exchange)
From: myexpertsonline-ga on 06 Aug 2005 12:57 PDT
 
Well, now I can't figure out what Exchange Server has to do with this
at all, unless you sent them a file they opened with Word and there
were autorun macros in it that copied the BAS.

Why are you not simply creating a global template? Most people don't
mess with the actual BAS files.

Please see this Microsoft article. I will try to check back to see if
you continue to have questions.

http://office.microsoft.com/en-us/assistance/HA010872941033.aspx

~Anne Troy

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy