A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
VB uses quote marks to delineate the beginning and end of strings of text, so if you just put a single quote mark inside, VB can't tell if you mean an internal quote mark or an end/beginning of a new text string... so it issues an error. VB provides a mechanism to allow you to include internal quote marks though... just use two quote marks for each internal one. Example...
If your quote text is this... My name is "Rick"
then double the quote marks....
My name is ""Rick""
and then put the surrounding quote marks around it to tell VB is is a text string...
"My name is ""Rick"""
This applies to quoted text constants... once the text is in a variable, you do not have to do anything extra afterwards... VB knows what to do with the text contained in a variable once it is in that variable.
NOTE: Please mark the message or messages (yes, you can mark more than one) that answer your question as the "Answer" so that others will know your question has been resolved.