Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / New Users / September 2007

Tip: Looking for answers? Try searching our database.

Filling a cell from a Macro

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Just Merks - 13 Sep 2007 19:14 GMT
Hello,

I want to put a IF formula from a Macro. IE. cell= "=IF(a=b,"yes","no")"

However this give an error on the " sign. How to proceed?

regards,

Just
Gord Dibben - 13 Sep 2007 19:30 GMT
You need to double up on the  " marks around the strings yes and no

Range("C1").Formula = "=IF(A1=B1,""yes"",""no"")"

Gord Dibben  MS Excel MVP

>Hello,
>
[quoted text clipped - 5 lines]
>
>Just

Rate this thread:






 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.