Script works, script don't work 
Author Message
 Script works, script don't work

Hi Folks:

I got another bug question. I have a macro which I have been testing/running from the VB Script editor. Today I made a drop down list on my page which, when you exit, runs the macro.

2 questions:

1. I can only get the macro to run when I hit the tab key after making my drop down selection. Is there any way in VBA that I can associate an event handler (like an onClick, onChange, etc.) with that drop down list.

Annnnnddddd...since I am asking - I would ideally rather use some graphical buttons to run the macro - how do you drop an image in your doc and have an event handler associated with? Or is this beyond the scope of word?

The MS Word/VBA help files, though thoroughly documented (describing objects, procedures, methods, etc.) lacks on the tutorial/explanation side. But I digress.

Problemo numero dos:

Part of the forementioned script creates a new doc, dumps some variables into the doc, saves the doc to the server and then closes it. It all worked dandy from the editor but once I associated it with the drop down list it broke:

The newly created doc will not close. I get a Command Failed error when I run the script.


As always, thanks much.

Steve

_______________________________________________
Submitted via WebNewsReader of http://www.*-*-*.com/



Mon, 25 Aug 2003 03:29:58 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. Remote Script don't work on NT4 Server

2. WMI Sink-Events don't work with VB6 (but with VB-Script)

3. MovePrevious don't work but the MoveNext work's fine

4. Valid script does not work with Scripting Object Model

5. New To Scripting and Script does not work

6. Remote Scripting, it doesn't work on my machine

7. TRUNCATE TABLES won't work from Robot Script

8. OPTION EXPLICIT DOESN'T WORK IN SCRIPT CONTROL

9. Why this script doesn't work

10. script won't work but no error

11. Script doesn't work

12. Can't get sample script to work (where pc talks to midrange)

 

 
Powered by phpBB® Forum Software