macro download

  • Thread starter Thread starter davidb2989
  • Start date Start date
D

davidb2989

A co-worker has e-mailed me a macro which has a .cls file
extension. How can I install it on my computer. Where
are macros stored? Do I just need to copy to a certain
directory to include it on the list of macros on my
computer. I'm using Windows XP Professional.
Thanks,
davidb2989
 
Assuming you know what is in the Class Module and need it for use in Word,
you have two options. You import it into your global template (normal.dot)
or you import it into a template add-in that you store in your Startup
folder.

Regardless of which location you put it, you open Word, click ALT-F11 to
enter the VBE window, click on the VBA Project in the top left window that
you want to put it in, click the "File" menu, select "Import file", browse
to the folder where you saved this *.cls" file and select it. It will
insert a new Class Module in whichever VBA project you decided to put it in.

I would, however, make sure you know what it is doing and how to utilize it
before just blindly inserting into Word. I have been doing some programming
in Word for a few years now and I still haven't graduated to Class Modules.
What type of code does this class module contain?
 
Back
Top