Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 12
Default How to insert: " into a string

Hi

How do I insert a: " into a VBA string?

Thanks
Torben Laursen



---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.786 / Virus Database: 532 - Release Date: 29/10/2004


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default How to insert: " into a string

double the double quotes:

"this string ""contains"" double quotes"

from the immediate window (to illustrate):

sStr = "this string ""contains"" double quotes"
? sStr
this string "contains" double quotes

--
Regards,
Tom Ogilvy

"Torben Laursen" wrote in message
...
Hi

How do I insert a: " into a VBA string?

Thanks
Torben Laursen



---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.786 / Virus Database: 532 - Release Date: 29/10/2004




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 690
Default How to insert: " into a string

If I understand the question correctly, I believe it is done with two
quotation marks when inside a "string."

[A1].Formula = "=CONCATENATE(""First "",""Second"")"

HTH
--
Dana DeLouis
Win XP & Office 2003


"Torben Laursen" wrote in message
...
Hi

How do I insert a: " into a VBA string?

Thanks
Torben Laursen



---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.786 / Virus Database: 532 - Release Date: 29/10/2004




  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 12
Default How to insert: " into a string

Hi Tom and Dana

Thanks but I must be very slow <g
What I want is to insert quotes around the string FileName in the code
below;
I don't see how I can do that using double quotes

FileName = Application.GetOpenFilename("VLXE Files (*.XML), *.XML")
If FileName < False Then
str = "=VLXE_WriteFileIntoDll(" & FileName & ")"
ActiveCell.Offset(rowOffset:=0, columnOffset:=0).Value = str
end if

Thanks
Torben Laursen



How do I insert a: " into a VBA string?

Thanks
Torben Laursen



---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.786 / Virus Database: 532 - Release Date: 29/10/2004




---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.786 / Virus Database: 532 - Release Date: 29/10/2004


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
insert objects in .xlsx fails with message "cannot insert object" clacketwood Excel Discussion (Misc queries) 0 February 18th 10 12:16 PM
Converting "uppercase" string data to "lower case" in CSV file [email protected] Excel Discussion (Misc queries) 2 August 12th 08 08:36 PM
text string: "91E10" in csv file auto converts to: "9.10E+11" [email protected] Excel Discussion (Misc queries) 2 August 12th 08 03:13 PM
insert "-" as fourth character in number string cursednomore Excel Discussion (Misc queries) 2 February 7th 07 07:33 PM
Macro to insert "0" in front of 4 character string Lowell B. Copeland[_2_] Excel Programming 2 August 29th 03 03:43 PM


All times are GMT +1. The time now is 11:58 AM.

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

About Us

"It's about Microsoft Excel"