+ Reply to Thread
Results 1 to 2 of 2

Converting a cell to minutes

  1. #1
    Registered User
    Join Date
    07-04-2006
    Posts
    6

    Converting a cell to minutes

    Hello

    I need to enter a number of hours into a cell and it will work out the amount in minutes. Obviously i could do this with a calculation in another cell (=sum(A1*60)...

    However i need it to work it out in the cell that i put the number of hours in. For example i will enter 2 and it will change it to 180.

    Is this possible?

    Kind Regards,
    Darren Stewart

  2. #2
    Valued Forum Contributor
    Join Date
    12-16-2004
    Location
    Canada, Quebec
    Posts
    363
    Hi Darren

    Put the following in module under worksheet.

    Private Sub Worksheet_Change(ByVal Target As Range)
    Application.EnableEvents = False
    refere = Target.Address
    target1 = Target * 60
    Range(refere).Select
    ActiveCell = target1
    Application.EnableEvents = True
    End Sub

+ 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