Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default my code is adding single quotes

Try activecell.formula (not .formulaR1C1).

DKY wrote:

My code here ActiveCell.FormulaR1C1 = "=VLOOKUP(D" & i &
",kickoutrange,6,FALSE)" that's in my macro is adding a formula that
looks like this.
=VLOOKUP('D2',kickoutrange,6,FALSE)"
when I want it to look like this
=VLOOKUP(D2,kickoutrange,6,FALSE)"
why is it adding the single quotes around D2?

--
DKY
------------------------------------------------------------------------
DKY's Profile: http://www.excelforum.com/member.php...o&userid=14515
View this thread: http://www.excelforum.com/showthread...hreadid=392663


--

Dave Peterson
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
Vlookup is adding quotes! Michael Enoksen Excel Worksheet Functions 3 September 25th 08 03:37 PM
Adding quotes to columns Mj Excel Discussion (Misc queries) 3 December 9th 04 03:49 PM
Adding quotes to the ends of a string variable Torben Laursen Excel Programming 2 November 13th 04 11:37 AM
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 07:35 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"