What's new

Closed Vba codes in excel macro

Status
Not open for further replies.

Eyaa-

Eternal Poster
Joined
Jul 22, 2016
Posts
607
Reaction
373
Points
266
guys pa help naman ako. Im coding a TAM tools( Time and Motions Tools) in Excel macro (VBA Codes). Gusto ko ihiwalay yung date at time sa ibang cell kung baga separated sila kapag pinindot ko na yung Buttons this is my codes.


Sub Start_time()
Range("F" & ActiveCell.Row).Select
ActiveCell.Value = Time()

End Sub



Sub end_time()
Range("G" & ActiveCell.Row).Select
ActiveCell.Value = Time()
Range("H" & ActiveCell.Row).Select
ActiveCell.Value = ActiveCell.Offset(0, -1).Value - ActiveCell.Offset(0, -2).Value
End Sub

example. si A1 gagawin kung date si A2 naman is Time kapag ni click ko na si command button
thanks sa papasnsin
 
Hindi wala naman bali ang output nyan is time lang lalabas. Kasi ima iminus ko yung left column to right column para makuha ko yung minute ng end of activity. Bali sa start yung gusto ko iseperate yung time and dat sa specified cell
 
Status
Not open for further replies.

Similar threads

Back
Top