T
Tosca
Hi everyone
I'm familiar with the VBA editor (Alt + F11) in Word 2003 and Excel 2003 to
edit code or a macro. I've been introduced recently to the Microsoft Script
Editor (Alt + Shift + F11) in the same applications. I've been advised that
I can use this to edit and debug Visual Basic Script but I've run into
problems using it. I've opened the VB Script via the Editor and hoped to
step therough it (as I would if I had code in Word or Excel) but it won't do
so. When I press F11 to step into the code, it doesn't do so. I've tried
F5 to run the code which causes the indicator on the blue bar at the top of
the pane to change from "design" to "run" and the pane changes slightly but
then everything return to as it was. The code should result in message
boxes being produced but that doesn't happen. Similarly, if I type
something into the Immediate Pane, the response is "The expression cannot be
evaluated whilst in design mode".
I'm not sure if there's a problem with the editor (I've tried repairing from
the installation disc) or if I'm misusing it. I've done a lot of googling
but can't find explicit instructions dealing with how to use the editor!
I've tried asking a similar question on a VBS forum but that's not resulted
in a solution. I felt it appropriate to ask on a Word forum as I access
this editor from Word 2003.
Does anyone have any suggestions which will allow me to use this editor to
write and debug VB Script?
Thanks for your patience!
I'm familiar with the VBA editor (Alt + F11) in Word 2003 and Excel 2003 to
edit code or a macro. I've been introduced recently to the Microsoft Script
Editor (Alt + Shift + F11) in the same applications. I've been advised that
I can use this to edit and debug Visual Basic Script but I've run into
problems using it. I've opened the VB Script via the Editor and hoped to
step therough it (as I would if I had code in Word or Excel) but it won't do
so. When I press F11 to step into the code, it doesn't do so. I've tried
F5 to run the code which causes the indicator on the blue bar at the top of
the pane to change from "design" to "run" and the pane changes slightly but
then everything return to as it was. The code should result in message
boxes being produced but that doesn't happen. Similarly, if I type
something into the Immediate Pane, the response is "The expression cannot be
evaluated whilst in design mode".
I'm not sure if there's a problem with the editor (I've tried repairing from
the installation disc) or if I'm misusing it. I've done a lot of googling
but can't find explicit instructions dealing with how to use the editor!
I've tried asking a similar question on a VBS forum but that's not resulted
in a solution. I felt it appropriate to ask on a Word forum as I access
this editor from Word 2003.
Does anyone have any suggestions which will allow me to use this editor to
write and debug VB Script?
Thanks for your patience!