Thread: Time Formula
View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Toppers Toppers is offline
external usenet poster
 
Posts: 4,339
Default Time Formula

Try:

v1 = 6
v2 = 30
Range("a1") = "=time(" & v1 & "," & v2 & ",0)"

"I.P" wrote:

I Wish to use a macro to insert ActiveCell.FormulaR1C1 =
"=TIME(6,30,0)" in a cell. With the 6 and the 30 to be variables from
a input box.
Ian