Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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])" |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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])" |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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 |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Formula to Remove Special Characters | Excel Discussion (Misc queries) | |||
Formulas that include alpha and numeric characters | Excel Worksheet Functions | |||
Importing Ascii file to Excell won't include Null Characters | Excel Discussion (Misc queries) | |||
special characters | Excel Worksheet Functions | |||
special characters | Excel Programming |