![]() |
how to include special characters in a formula?
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. "Chip Pearson" wrote in message ... 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])" |
how to include special characters in a formula?
Here is a corrected version:
Range("N2").FormulaR1C1 = "=HOUR(RC[-1]) & "":"" & MINUTE(RC[-1])" -- Regards, Tom Ogilvy <a wrote in message ... 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. "Chip Pearson" wrote in message ... 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])" |
how to include special characters in a formula?
See one more reply at your other thread.
a wrote: 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. "Chip Pearson" wrote in message ... 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])" -- Dave Peterson |
how to include special characters in a formula?
thanks alot,
now i realize you dont need & to link up the strings inside a formula. "Dave Peterson" wrote in message ... See one more reply at your other thread. a wrote: 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. "Chip Pearson" wrote in message ... 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])" -- Dave Peterson |
All times are GMT +1. The time now is 12:09 AM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com