Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
I.P I.P is offline
external usenet poster
 
Posts: 5
Default 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

  #2   Report Post  
Posted to microsoft.public.excel.programming
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


  #3   Report Post  
Posted to microsoft.public.excel.programming
I.P I.P is offline
external usenet poster
 
Posts: 5
Default Time Formula

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

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Time formula (difference of predicted and actual time) deb Excel Discussion (Misc queries) 7 September 26th 08 04:55 PM
Calculating Time with Date/Time checking in formula cmatera Excel Worksheet Functions 2 August 11th 08 01:38 PM
formula for converting military time to standard time, etc Pattio Excel Discussion (Misc queries) 8 February 17th 08 01:12 AM
Formula to find Stop Time from Start Time and Total Minutes Jonathan Bickett Excel Worksheet Functions 5 March 7th 07 05:22 PM
template or formula for start time -finish time -total hours ple cc New Users to Excel 1 March 27th 06 06:06 PM


All times are GMT +1. The time now is 10:37 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"