I tend to set a variable to Chr$(34) and use that rather then have all of those double double quotes.
From: 'L. Allen' loaa3406@yahoo.com [ExcelVBA] <ExcelVBA@yahoogroups.com>
To: ExcelVBA <ExcelVBA@yahoogroups.com>
Sent: Fri, Sep 5, 2014 4:34 pm
Subject: RE: [ExcelVBA] Trouble inserting a formula into a cell
But for your formula insertion you have to be wary of your use of double quotes and commas.
"=IF(SeriesGame" & s & "=" & 26 & ", MyGameName,)"
Is SeriesGame cell text or numeric? If it's text, i.e. ABC then you're looking to compare abc2 to 26.
Then the comma following MyGameName should either be followed by double quotes to do nothing or removed.
When you type the formula in, Excel is probably correcting it for you.
Strictly my opinion, good luck.
Grandpa Al
From: Mark Bacheldor m_bacheldor@yahoo.com [ExcelVBA]
Sent: 9/5/2014 6:31 AM
To: ExcelVBA@yahoogroups.com
Subject: Re: [ExcelVBA] Trouble inserting a formula into a cell
From: "h_dunbar@hotmail.com [ExcelVBA]" <ExcelVBA@yahoogroups.com>
To: ExcelVBA@yahoogroups.com
Sent: Friday, September 5, 2014 6:33 AM
Subject: [ExcelVBA] Trouble inserting a formula into a cell
Posted by: Green <1z@compuserve.com>
Reply via web post | • | Reply to sender | • | Reply to group | • | Start a New Topic | • | Messages in this topic (7) |
Be sure to check out TechTrax Ezine for many, free Excel VBA articles! Go here: http://www.mousetrax.com/techtrax to enter the ezine, then search the ARCHIVES for EXCEL VBA.
----------------------------------
Visit our ExcelVBA group home page for more info and support files:
http://groups.yahoo.com/group/ExcelVBA
----------------------------------
More free tutorials and resources available at:
http://www.mousetrax.com
----------------------------------
Tidak ada komentar:
Posting Komentar