LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 12
Default Adding quotes to the ends of a string variable

Hi

I want to add a quote on each side of a string variable so I can use it as a
function argument
In the code below FileName needs to have a quote added to each end otherwise
the function is not called

Code sniff:
dim FileName, str as string
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

Can anyone show me how to do this, thanks

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


 
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
Vlookup is adding quotes! Michael Enoksen Excel Worksheet Functions 3 September 25th 08 03:37 PM
Concatenate function adding double quotes to both ends of results SqtYork Excel Worksheet Functions 0 September 4th 07 06:22 PM
setting a range variable equal to the value of a string variable Pilgrim Excel Programming 2 July 1st 04 11:32 PM
double quotes around string in formula craeted in vba tegger Excel Programming 4 November 21st 03 06:17 PM
Data string ends up in first cell instead of Comma sepaerated CSV format Katherine[_3_] Excel Programming 2 September 27th 03 06:24 PM


All times are GMT +1. The time now is 11:38 PM.

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"