LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
Ben Ben is offline
external usenet poster
 
Posts: 509
Default To include quote marks in selection.formula

Selection.Formula = "=IF(G4="C",L4-F4,0)"

I would like the above formula to be input in the active cell. The trouble
is that the appearance of the quote marks around C produces a syntax error in
VBA. How do I include quote marks in a formula that Ineed to input using VBA.
Thank you
 
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
Writing formula to include quote marks in result Valerie Excel Worksheet Functions 4 February 18th 09 10:01 PM
Quote Marks Through VBA [email protected] Excel Discussion (Misc queries) 12 November 16th 06 05:20 PM
How to keep quote marks for CSV in excel Matt Excel Discussion (Misc queries) 0 August 1st 06 12:30 AM
Excel inserts single quote marks into formula Max Bialystock[_2_] Excel Programming 2 May 13th 06 12:08 PM
How do you look for quote marks? ExcelMonkey Excel Programming 3 July 19th 05 12:02 PM


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