View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.misc
Don Guillett[_2_] Don Guillett[_2_] is offline
external usenet poster
 
Posts: 1,522
Default place code where?

On Saturday, September 8, 2012 3:09:38 AM UTC-5, Stephen wrote:
Hello, can someone explain how and where does this code go to get it to work?

Does it go in general macro or do I need to put in a module.



Private Function SecondsToTime(byval dSeconds as Double) _

as String

SecondsToTime = Format(DateAdd("s", dSeconds, "00:00:00"), "HH:mm:ss")

End Function





regards

Stephen


Assuming your function is OK it needs to go into a REGULAR module. Not a sheet module