Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Quotes used in a formula ???

Status
Not open for further replies.

Funkymatt

Programmer
Aug 27, 2002
101
US
I tired the Tek-tips search but it's down...

Code as Follows:
Worksheets("GoHokies").Cells(2, 2).Formula = "=TEXT(WEEKDAY(C3),"ddd")"

How do I use the double quotes needed in the formula without my code thinking that my formula assignment has ended?

~M
 
Use two quotes instead of one for each quotation mark you need to insert, i.e.

"=TEXT(WEEKDAY(C3),""ddd"")"
Rob
[flowerface]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top