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: 4
Default my code is adding single quotes

DKY,
I've hit this before. You can make the quotes not appear by using
R1C1-style addressing instead of A1 style. There is information in the
VBA help about R1C1. It's a tricky line to write and get the
parentheses and quotes correct.
Here is an example using EXACT, which I know a little better than
VLOOKUP

j = 3
ActiveCell.FormulaR1C1 = "=EXACT(R[1]C[1],D" & j & ")"

In the example above, the first parameter uses R1C1 and does not come
out quoted, and the second uses A1-style, and does come out quoted.

Note: R[1]C[1] is a relative cell reference, one over and one down from
the activecell. So there's an extra step if you need absolute.

Kevin

 
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
my code is adding single quotes Dave Peterson Excel Programming 0 August 3rd 05 09:39 PM
Adding quotes to columns Mj Excel Discussion (Misc queries) 3 December 9th 04 03:49 PM
Single quotes in named range Vik Mehta Excel Worksheet Functions 4 November 12th 04 02:35 PM
Magical appearance of single quotes. Dean Corda Excel Programming 2 October 16th 03 02:19 PM


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