Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 48
Default how to use (double) quotation mark as string in codes?

Dear everyone,

double quotation mark (") is a reserved word in VB, but I need show it via
msgbox. How Can I do it?

Tks & BR
Viesta
Shanghai, China


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 249
Default how to use (double) quotation mark as string in codes?

MsgBox """Quoted response"""

--

Regards,

Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft Certified Professional
Microsoft MVP [Windows]
http://www.microsoft.com/protect

"ViestaWu" wrote:
| Dear everyone,
|
| double quotation mark (") is a reserved word in VB, but I need show it via
| msgbox. How Can I do it?
|
| Tks & BR
| Viesta
| Shanghai, China
|
|


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 48
Default how to use (double) quotation mark as string in codes?

Hello Dave,

It works well. But I couldn't understand its syntax. could you explain to me?

BR
Viesta

"Dave Patrick" wrote:

MsgBox """Quoted response"""

--

Regards,

Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft Certified Professional
Microsoft MVP [Windows]
http://www.microsoft.com/protect

"ViestaWu" wrote:
| Dear everyone,
|
| double quotation mark (") is a reserved word in VB, but I need show it via
| msgbox. How Can I do it?
|
| Tks & BR
| Viesta
| Shanghai, China
|
|



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,593
Default how to use (double) quotation mark as string in codes?

You have to tell VBA that the quotes are part of the string, not a string
delimiter, so you pass it once to start the string, and then another two to
say this is to be included. At the end, it works the other way, two to say
this is a quotes to include, one to close the string.

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"ViestaWu" wrote in message
...
Hello Dave,

It works well. But I couldn't understand its syntax. could you explain to

me?

BR
Viesta

"Dave Patrick" wrote:

MsgBox """Quoted response"""

--

Regards,

Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft Certified Professional
Microsoft MVP [Windows]
http://www.microsoft.com/protect

"ViestaWu" wrote:
| Dear everyone,
|
| double quotation mark (") is a reserved word in VB, but I need show it

via
| msgbox. How Can I do it?
|
| Tks & BR
| Viesta
| Shanghai, China
|
|





Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Formula For Finding a Quotation Mark In a String Tiziano Excel Worksheet Functions 2 June 16th 09 02:05 AM
Excel CSV file: How to preserve double quotation mark on Unix ftp? Shannona Excel Discussion (Misc queries) 2 October 3rd 06 07:54 PM
Single or Double Quotation Mark and it comes up twice J.R.HOLMES Setting up and Configuration of Excel 1 December 31st 05 08:51 PM
How to include a double quotation character in a string? Georgee Excel Programming 2 August 17th 04 06:41 AM
chr() for quotation mark Todd Huttenstine Excel Programming 7 July 29th 04 08:14 PM


All times are GMT +1. The time now is 03:17 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"