Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Putting Quotes in for XML
I'm trying to build an XML file using VBA. I want to put something like this in a string variable: <FORM Name="Rones Form"</FORM
The problem I'm having is with the quotes. Because its already in a string ( strXML = "<FORM Name=XXX") when I put the quotes in where the name of the form gose it fails. In Unix Shell I could place an escape character which would allow me to do stuff like this. Anyone got any ideas how to do this in VB |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Putting Quotes in for XML
To include double quotes, double them:
strXML = "<FORM Name=""XXX""" In article , "Rone" wrote: I'm trying to build an XML file using VBA. I want to put something like this in a string variable: <FORM Name="Rones Form"</FORM The problem I'm having is with the quotes. Because its already in a string ( strXML = "<FORM Name=XXX") when I put the quotes in where the name of the form gose it fails. In Unix Shell I could place an escape character which would allow me to do stuff like this. Anyone got any ideas how to do this in VB? |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Putting Quotes in for XML
Nevermind...I fout that the following will work: strQuote = """". This displays a ", which is what I needed.
|
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
putting a name in the name box | Excel Discussion (Misc queries) | |||
putting a name in a formula | Excel Discussion (Misc queries) | |||
change straight quotes to curly quotes | Excel Discussion (Misc queries) | |||
How do i get historical stock quotes using MSN Money Stock Quotes | Excel Discussion (Misc queries) | |||
Putting many columns into one | Excel Discussion (Misc queries) |