Message 1 of 17
Script not calling second VBA after _close

Not applicable
01-14-2008
06:56 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi, chaps.
I'm having problems calling VBA functions from a script:
Public Sub BTissued1()
MsgBox "1a"
ThisDrawing.Close
MsgBox "1b"
End Sub
Public Sub BTissued2()
MsgBox "2"
End Sub
-vbarun BTissued1
-vbarun BTissued2
(There's a space at the end of each line in the script.)
When I run the script I get "1a" displayed and the file closes; I then get "1b" but that's it. If I take "ThisDrawing.Close" away from BTissued1 I get all MsgBoxes.
(FYI, the reason I'm using a script is because in my full routine I'll be running a LISP routine between BTissued1 and BTissued2.)
I've tried the script:
(alert "1")
_close y
(alert "2")
but to no avail. Something similar worked in 2007 but has something changed in 2008?
S
I'm having problems calling VBA functions from a script:
Public Sub BTissued1()
MsgBox "1a"
ThisDrawing.Close
MsgBox "1b"
End Sub
Public Sub BTissued2()
MsgBox "2"
End Sub
-vbarun BTissued1
-vbarun BTissued2
(There's a space at the end of each line in the script.)
When I run the script I get "1a" displayed and the file closes; I then get "1b" but that's it. If I take "ThisDrawing.Close" away from BTissued1 I get all MsgBoxes.
(FYI, the reason I'm using a script is because in my full routine I'll be running a LISP routine between BTissued1 and BTissued2.)
I've tried the script:
(alert "1")
_close y
(alert "2")
but to no avail. Something similar worked in 2007 but has something changed in 2008?
S