Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

My problem is that I am trying to p

Status
Not open for further replies.

grimmy

MIS
Nov 25, 1999
57
FR
My problem is that I am trying to pass a string to a an active x control that requires double quotes in the string.

Test1 = "Word1 "Word2""

Word 2 is the word that I want to appear in double quotes but it does not like this code.
I have tried using a variant and other shot in the dark attempts using brackets and single quotes but cannot find the correct coding.

Please Help......

 
have you tried using the chr() function?

e.g.
test1 = "Word1 " & chr(34) & "Word2" & chr(34)
 
You could also try passing it like this:

test1 = "Word1 ""Word2""
 
Thankyou,
I used the chr function and it worked fine.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top