rwrichard1
New Member
- Joined
- Feb 12, 2018
- Messages
- 6
Hi,
I have a cell with the following in it:
20/01/2018 02:03:00
I am using VB and calling for the Hour value like this...
This gives me 02. Perfect... exactly what I want.
How do I get the Minutes though?
The above gives me 02:03... but
gives me 01... which I assume is the month instead.
I tried Nn, nn etc, but it doesn't work.
I tried...
But this gives me 3... and I want 03.
Please Help...?
Thanks
[TABLE="width: 111"]
<tbody>[TR]
[TD="align: right"][/TD]
[/TR]
</tbody>[/TABLE]
I have a cell with the following in it:
20/01/2018 02:03:00
I am using VB and calling for the Hour value like this...
Code:
UserFrom5.TextBox2 = WorksheetFunction.Text(Sheet6.Cells(a, 4), "hh")
This gives me 02. Perfect... exactly what I want.
How do I get the Minutes though?
Code:
UserFrom5.TextBox2 = WorksheetFunction.Text(Sheet6.Cells(a, 4), "hh:mm")
The above gives me 02:03... but
Code:
UserFrom5.TextBox2 = WorksheetFunction.Text(Sheet6.Cells(a, 4), "mm")
gives me 01... which I assume is the month instead.
I tried Nn, nn etc, but it doesn't work.
I tried...
Code:
UserFrom5.TextBox2 = Minute((Sheet6.Cells(a, 4))
But this gives me 3... and I want 03.
Please Help...?
Thanks
[TABLE="width: 111"]
<tbody>[TR]
[TD="align: right"][/TD]
[/TR]
</tbody>[/TABLE]