ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Time Formula (https://www.excelbanter.com/excel-programming/357306-time-formula.html)

I.P

Time Formula
 
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


Toppers

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



I.P

Time Formula
 
Thanks worked fine, I had read the answer somewhere several months ago
when I did not need it.
Ian



All times are GMT +1. The time now is 06:19 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com