My first post to the forum. Thanks in advance for any help
I have used excel for some time, but fairly new to VBA.
I am creating a userform to use as an audit tool at work (my first time doing a form). I want to calculate the time difference in minutes between a patient arriving at hospital and receiving a drug. The result would then be put into a field within the userform. I'm building the form at home with Excel 2007
I have put the dates and times into separate text boxes and after update set the dates to dd/mm/yyyy and times to hh:mm formats. I have kept the data and time separate to make it easier to fill dates in other parts of the form.
I can't calculate just off the times as the arrival date and drug given date may not be the same, but drug would always come after arrival.
Text boxes are called:
Arrival date = ArrivalDateTxt
Arrival time = ArrivalTimeTxt
Drug given date = tPAStartedDateTXT
Drug given time = tPAStartedTimeTXT
Result in minutes to go into = tPADTNMinutesTXT
Cheers
Steve
I have tried different things but non have worked, think due to my lack of understanding/experience with VBA
Bookmarks