Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
Sam Sam is offline
external usenet poster
 
Posts: 17
Default escape character

Hi,
does anyone know what the escape character in vba is?

like i want to make " part of a string but it always
takes it as the end of the string.
thanx
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default escape character

Sam,

VBA doesn't have an escape character as such. Use two "
characters. E.g.,

Dim S As String
S = "This has a ""quoted"" word."


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com


"sam" wrote in message
...
Hi,
does anyone know what the escape character in vba is?

like i want to make " part of a string but it always
takes it as the end of the string.
thanx



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
Escape key won't work Lee B Excel Discussion (Misc queries) 1 September 3rd 08 05:01 PM
Escape character for double quotes SteveFox Excel Worksheet Functions 5 December 23rd 05 10:54 PM
using escape key to exit a userform heidi Excel Programming 3 June 4th 04 05:25 PM
How to escape the Workbook Save? Jie Excel Programming 3 June 1st 04 05:26 AM
How to escape this error message jamesa Excel Programming 1 October 3rd 03 05:50 PM


All times are GMT +1. The time now is 07:48 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"