G
Guest
Hi,
I have tried the suggestion below, but it still doesnt work.
-------------------------------------------------------------------------
ya, i tried tat,
VBA would give me a "expected: line nubmer or label or statement or end of
statement" compile error.
i guess its bcos, by using double quotes, we break the formula up into 3
parts.
I have tried the suggestion below, but it still doesnt work.
-------------------------------------------------------------------------
ya, i tried tat,
VBA would give me a "expected: line nubmer or label or statement or end of
statement" compile error.
i guess its bcos, by using double quotes, we break the formula up into 3
parts.
Chip Pearson said:Use double quotes instead of apostrophes.
Range("N2").FormulaR1C1 = "=HOUR(RC[-1]" & ":" & MINUTE(RC[-1])"
--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com
one minor question.
how do you include special characters in formula? i am tryign to
achieve something like 9: 30.
with the semi-colon separating hours and mins.
Range("N2").FormulaR1C1 = "=hour(rc[-1])& ':' &minute(rc[-1])"