Alan_P
Well-known Member
- Joined
- Jul 8, 2014
- Messages
- 596
Hi Guys,
I'm absolutely stumped on what I thought would be very very easy and could do with some help please!
I've got a time value in cell A1, say 10:45. On my UserForm I've got two TextBoxes, in the first one I want to show the hour value - "10", in the second one I want to show the minute value - "45"
The hour value is easy:
But I can't for the life of me figure out how to get the minute value in a textbox!
Any help would be very much appreciated!
Thanks,
Alan.
I'm absolutely stumped on what I thought would be very very easy and could do with some help please!
I've got a time value in cell A1, say 10:45. On my UserForm I've got two TextBoxes, in the first one I want to show the hour value - "10", in the second one I want to show the minute value - "45"
The hour value is easy:
Code:
TextBox1.Value = Format(Cells(1, 1).Value, "HH")
But I can't for the life of me figure out how to get the minute value in a textbox!
Any help would be very much appreciated!
Thanks,
Alan.