Forum Home
Press F1
 
Thread ID: 28525 2002-12-22 05:25:00 Macro in Office XP MS Word Oxie (1318) Press F1
Post ID Timestamp Content User
108201 2002-12-22 05:25:00 I currently have a Macro in Word 2000 that enables me to print the current page.

I am trying to record the same macro in Office XP Word on another computer running XP Home, but for some reason it only remembers as far as opening up the print box and not selecting Current Page. Is this a known bug in XP Office or am I missing something? I welcome your suggestions.
Oxie (1318)
108202 2002-12-22 09:59:00 Suggest you search the Microsoft Knowledge Base at www.microsoft.com Dolby Digital (160)
108203 2002-12-22 17:21:00 Hi Oxie, I havent got OffXP but it seems strange that the record macro would work any different. Presuming you dont know VBA its probably easier just to export the macro from Word 2000 and import into Word 2002 to solve the current problem.

To do this...
1 Open the Word2k doc that contains the macro
2 Open the Vb Editor (press alt-F11 or from the menu Tools-Macros-Visual Basic Editor)
3 Select the macro (in the left hand pane will be modules, the macro will be held in either the normal or project(name of your doc) project.
4 With the module highlighted that contains your macro select File-Export File
5 A dialog box will appear asking you where to save. Save to your floppy so you can copy this to the other PC.
6 In the Word2002 PC open the VB Editor (steps 1-2 above)
7 Select File-Import File and import the macro from the floppy. If you already have a module with the same name in Word 2002, you can rename it on the floppy before importing.

A word of warning though, depending upon what you did macros can be explicit, meaning its referring to the doc with that name and may not work correctly if imported to another doc. However, if your just printing then it should be fine as it normally just refers to the active doc.
parry (27)
108204 2002-12-22 20:11:00 Parry,

Thank you so much for your well described step-by-step reply. Your instructions worked a treat, and I have learned something knew. So a very big thank you for your time and effort.

Warm wishes and Happy Christmas,

Lyn (Oxie)
Oxie (1318)
108205 2002-12-23 05:37:00 My please and I'm glad it worked for you.

Merry Xmas :-)
parry (27)
108206 2002-12-23 05:37:00 My pleasure and I'm glad it worked for you.

Merry Xmas :-)
parry (27)
1