do visual basic - compile Error
do visual basic - compile Error
- Subject: do visual basic - compile Error
- From: Armin Egginger <email@hidden>
- Date: Thu, 30 Dec 2004 12:17:25 +0100
Dear Scripters,
I need a AppleScript for word with a more functions. So I've checked VB and recorded a macro and change some parts of it. The VB script works fine in the app 'Word' directly. Now I put the VB in my AppleScript and get an error by running the script.
I get the error in 'Word', if there is a carriage return in the VB Text. Also simple VB commands gets a error. One line VB sripts without CR works, but I have several lines in my script.
Any ideas?
Armin
Tested on:
Mac OS X.3.7 german, Word v.X (incl Security Update) english Version, AS 2.0 (v43) 1.9.3
Mac OS X.3.7 german, Word v.X (incl Security Update) german Version, , AS 2.0 (v43) 1.9.3
============================
my script
set xVBcode2 to "
Dim datField As Field
Dim n As Integer
Dim i As Integer
Dim docParFormat As ParagraphFormat
" as string
tell application "Microsoft Word"
activate
do Visual Basic xVBcode2
end tell
============================
ERROR in Word "compile Error"
Sub TmpDDE()
"& vbLf &"Dim datField As Field"& vbLf &"Dim n As Integer"& vbLf &"Dim i As Integer"& vbLf &"Dim docParFormat _
As ParagraphFormat
End Sub
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden