Selasa, 14 Oktober 2014

[ExcelVBA] Help with sum of time


Hi All,

I am trying to create a hockey tracking spreadsheet. One thing I am trying to track is penalty minutes. My input is via a textbox.

Cells(EmptyRow, 13) = txtPIM1.Value + ":00"

I added the + ":00" to display time as 2:00, 5:00, etc. I want to sum the total penalty minutes, but my method gives an incorrect number. I tried formatting the cells to mm:ss but that doesn't work either. If I enter 2 as a value in the textbox txtPIM1, it returns 00:00.

Any help appreciated.


Posted by:
Reply via web post Reply to sender Reply to group Start a New Topic Messages in this topic (1)
Be sure to check out TechTrax Ezine for many, free Excel VBA articles! Go here: to enter the ezine, then search the ARCHIVES for EXCEL VBA.

Visit our ExcelVBA group home page for more info and support files:

More free tutorials and resources available at:




Tidak ada komentar:

Posting Komentar