Macro Code from Word

honor401

Registered User.
Local time
Today, 06:26
Joined
Aug 26, 2004
Messages
11
Hello everyone. first time poster, long time lurker.
kind of new to programming and have a question.

I have a macro that I recorded in word. I know how to get to the code. I know how to import it into access as a new module, but once I get it into access how do I use that code to format the text document.
I am formatting c:\testing.doc.
the macro from word VBE is in the attached txt file
I am using office 2003.
Database is in 2000 format

Thanks for the help in advance.
Honor401
 

Attachments

One way is to get the doc into Access... not the code

Not sure that you need to get the code into Access.

I have several db's that contain embedded Word docs, and when I wish to format them I set the focus on the doc (within Access).

Then you should get all the toolbars, etc. for Word. In other words :p you will then be 'in' the Word doc and have all the functionality of Word.

I then have a set of toolbar buttons that activate various formatting routines, but that code is still within Word, not Access.

Actually, it works very well.

HTH :cool:
 

Users who are viewing this thread

Back
Top Bottom