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: 1
Default passing strijng with double quotes

I have a routine that takes a String

Sub headerInfo(name As String)

Range("A5").Select
Selection.Copy
ActiveSheet.Paste
Application.CutCopyMode = False

ActiveCell.FormulaR1C1 = _
"=INDEX([Master.xls]Riders!R8C1:R39C11, MATCH(" & *name*
",[Master.xls]Riders!R8C1:R39C1,), MATCH(""Tiers
since"",[Master.xls]Riders!R8C1:R8C11,))"

ActiveCell.Formula = ActiveCell.Value

....more code


when I pass the string name, I do :

headerInfo name:="some string"

in order for the MATCH to work, I need to generate the following:

...MATCH(""some string"", ......

much like the second MATCH where it says ""Tiers / since"'"

how do I achieve this? right now is seem that it passes the name (som
string) with one set of quotes but I can't get it to pass 2 sets.

if I look at the formula that it generates in the workbook, it shows m
string without the quotes.

how do add a second set to my formula??

thanks

Pab

--
Message posted from http://www.ExcelForum.com

 
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
char(10) and double quotes JohnE Excel Worksheet Functions 2 March 11th 09 09:40 PM
double quotes used in cell Reshma Excel Discussion (Misc queries) 1 December 19th 08 10:02 AM
Double Quotes [email protected] New Users to Excel 2 July 20th 08 12:43 PM
Double Quotes PeterM Excel Discussion (Misc queries) 5 June 17th 08 05:12 PM
Save As CSV, double quotes Zamdrist Excel Discussion (Misc queries) 1 October 30th 06 07:40 PM


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