Question Use variable between HTML tags

byTimber

Registered User.
Local time
Yesterday, 16:33
Joined
Apr 14, 2012
Messages
97
I hope this is the right place to post this question:
TextBox1 is Rich Text:-

I want to replace my String ("Evidence required of this please" ) in this code 1) following which works fine, with a variable (textToPaste) as in code 2) which doesn't work.

1) TextBox1 = "<div><font style=""BACKGROUND-COLOR:#FFFF00"">Evidence required of this please</font>"

2) TextBox1 = "<div><font style=""BACKGROUND-COLOR:#FFFF00"">textToPaste</font>"

Can I persuade the statement to accept "textToPaste" as a variable and not a normal string? - I probably mean - Can You??!
Thanks for looking....
 
Try

TextBox1 = "<div><font style=""BACKGROUND-COLOR:#FFFF00"">" & VariableName & "</font>"
 
Thanks Paul - tried, tested and SORTED!!!

Very fast response and I'm very grateful...... Roger ...
 
Happy to help Roger!
 

Users who are viewing this thread

Back
Top Bottom