+ Reply to Thread
Results 1 to 3 of 3

Time Formula

Hybrid View

  1. #1
    I.P
    Guest

    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. #2
    Toppers
    Guest

    RE: 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. #3
    I.P
    Guest

    Re: Time Formula

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


+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1