R
Richard White
I have been given a Macro (source code) for Word (I use Word XP).
What *exactly* do I now do to install/run the thing?
The macro writer gave me the following cryptic steps, but I am not seeing what he expects me to see,
so I can't use them:-
When in Word: Tools->Macro->VB
Click on run
type a name in the box
then it opens up with
Sub ()
End Sub
Simply copy program code via Notepad
Things go awry after Tools->Macro
I don't have "VB", but I do have "Visual Basic Editor", so I've selected that. In the blank window
that then appears I have clicked on "Run", and sussed out how to create a new macro; pasted in the
code, and saved the whole document.
On re-editing the macro is still there!!! But won't work.
An initial statement of "zz = 0" fails as "Invalid outside procedure"
So I notice that the "Sub ()" and "End Sub" aren't present as per instructions, so I added them
before/after all the code, and now get error "Expected: identifier".
Only other thing I can think of is to say 'where-I-am' in Word. I'm 'in' the macro editing, in an
edit window with title of "MyMacro - UserForm1(code)", and with a couple of one liner pull-downs
above the code: top-left = "(General)" and top-right = "(Declarations)".
errrr ..... how DO I get the macro to install/run?
What *exactly* do I now do to install/run the thing?
The macro writer gave me the following cryptic steps, but I am not seeing what he expects me to see,
so I can't use them:-
When in Word: Tools->Macro->VB
Click on run
type a name in the box
then it opens up with
Sub ()
End Sub
Simply copy program code via Notepad
Things go awry after Tools->Macro
I don't have "VB", but I do have "Visual Basic Editor", so I've selected that. In the blank window
that then appears I have clicked on "Run", and sussed out how to create a new macro; pasted in the
code, and saved the whole document.
On re-editing the macro is still there!!! But won't work.
An initial statement of "zz = 0" fails as "Invalid outside procedure"
So I notice that the "Sub ()" and "End Sub" aren't present as per instructions, so I added them
before/after all the code, and now get error "Expected: identifier".
Only other thing I can think of is to say 'where-I-am' in Word. I'm 'in' the macro editing, in an
edit window with title of "MyMacro - UserForm1(code)", and with a couple of one liner pull-downs
above the code: top-left = "(General)" and top-right = "(Declarations)".
errrr ..... how DO I get the macro to install/run?