🔒 Closed Vba codes in excel macro

Status
Not open for further replies.

Eyaa-

Honorary Poster
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

About this Thread

  • 2
    Replies
  • 842
    Views
  • 2
    Participants
Last reply from:
Eyaa-

Trending Topics

Online now

Members online
1,051
Guests online
2,073
Total visitors
3,124

Forum statistics

Threads
2,285,128
Posts
29,027,874
Members
1,219,306
Latest member
kidd1335
Back
Top