using special characters in strings syntax help please

E

efandango

I am trying to use the following strings in my form, but am getting nowhere
with all my attempts at trying to have them accepted by VBA.


Print #lngFN <StyleMap id="m_ylw-pushpin">

Print #lngFN <hotSpot x="20" y="2" xunits="pixels" yunits="pixels"/>

what do I need to do to these to make them work?
 
D

Dirk Goldgar

efandango said:
I am trying to use the following strings in my form, but am getting nowhere
with all my attempts at trying to have them accepted by VBA.


Print #lngFN <StyleMap id="m_ylw-pushpin">

Print #lngFN <hotSpot x="20" y="2" xunits="pixels" yunits="pixels"/>

what do I need to do to these to make them work?


Is this what you want?

Print #lngFN, "<StyleMap id=""m_ylw-pushpin"">"
Print #lngFN, "<hotSpot x=""20"" y=""2"" xunits=""pixels""
yunits=""pixels""/>"

You need to use the correct syntax for the Print statement, and yu need to
double-up quotes inside alraedy-quoted literal strings.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top