ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Inputing a " within a " (https://www.excelbanter.com/excel-programming/354947-inputing-within.html)

Michael Vaughan

Inputing a " within a "
 
Hello,

I know this is simple, but I just can't find it in the HELP files. How do
you insert a " within a "! Here's what I am trying to do:

formatbeg = "<FONT COLOR="336666""

I know how to do it in Perl, but that doesn't work in VBA.
Thanks... Michael Vaughan



Nick Hodge

Inputing a " within a "
 
Michael

Try

formatbeg = "<FONT COLOR=""336666"""

--
HTH
Nick Hodge
Microsoft MVP - Excel
Southampton, England
www.nickhodge.co.uk
HIS


"Michael Vaughan" wrote in message
...
Hello,

I know this is simple, but I just can't find it in the HELP files. How do
you insert a " within a "! Here's what I am trying to do:

formatbeg = "<FONT COLOR="336666""

I know how to do it in Perl, but that doesn't work in VBA.
Thanks... Michael Vaughan





JE McGimpsey

Inputing a " within a "
 
Double up your quote marks...

formatbeg = "<FONT COLOR=""336666"""

In article ,
"Michael Vaughan" wrote:

Hello,

I know this is simple, but I just can't find it in the HELP files. How do
you insert a " within a "! Here's what I am trying to do:

formatbeg = "<FONT COLOR="336666""

I know how to do it in Perl, but that doesn't work in VBA.
Thanks... Michael Vaughan


GS

Inputing a " within a "
 
Surely I missed that!! ...I need a coffee, ..now!

Absolutely double up the quotes!

Regards,
GS

Michael Vaughan

Inputing a " within a "
 
Got it!!!! Thanks guys.
mv


"Michael Vaughan" wrote in message
...
Hello,

I know this is simple, but I just can't find it in the HELP files. How do
you insert a " within a "! Here's what I am trying to do:

formatbeg = "<FONT COLOR="336666""

I know how to do it in Perl, but that doesn't work in VBA.
Thanks... Michael Vaughan






All times are GMT +1. The time now is 01:57 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com