View Full Version : Macro Code from Word


honor401
09-09-2004, 05:49 AM
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

sfreeman@co.mer
09-09-2004, 11:29 AM
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: