Escaping Quote Characters
Escaping Quote Characters
- Subject: Escaping Quote Characters
- From: Dave <email@hidden>
- Date: Tue, 05 Apr 2016 14:42:38 +0100
Hi All,
I’m trying to make some VBA Code work in Word 2011. I generate a VBA String and then run:
tell application id "com.microsoft.Word"
«event MSWDdovb» myVBAString
end tell
Part of the string contains this code:
set myVBAString to myVBAString & "strPropertyName = \”DocProp1\"" & linefeed
set myVBAString to myVBAString & "varValue = \”DocProp1 Value)\"" & linefeed
Which gives this as Output:
strPropertyName = \"DocProp1\"
varValue = \”DocProp1 Value\"
Is this correct? I had thought that the “\” characters would be dropped. I’m looking at the String in Script Editor so maybe that adds the “\” for Output?
Any help or suggestions in how to make this work would be greatly appreciated.
All the Best
Dave
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden