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: jeff.flanagan@duffcorp.ca
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: http://www.mousetrax.com/techtrax to enter the ezine, then search the ARCHIVES for EXCEL VBA.

----------------------------------
Visit our ExcelVBA group home page for more info and support files:
http://groups.yahoo.com/group/ExcelVBA

----------------------------------
More free tutorials and resources available at:
http://www.mousetrax.com

----------------------------------

.

__,_._,___

Tidak ada komentar:

Poskan Komentar