ThrottleWorks
Excel Ninja
Hi,
I am getting Run Time Error 13 Type mismatch while running a loop.
rn.Offset(0, 2).Value = rn + Time(rn.Offset(0, 1).Value, 0, 0)
I am trying to run this line, but there is some bug in the code.
This is the entire code
Dim rng19 As Range
Set rng19 = Range("ap2:ap" & endrow)
'Adding value 5 in GMT column
For Each rn In rng19
rn.Offset(0, 2).Value = rn + Time(rn.Offset(0, 1).Value, 0, 0)
Next rn
I have three columns, AP2 is original time
AQ 2, value as 5 or 0
Result in AR2 should be AP2+ AQ2.
Value in AP2 is time for example 12:00:00
Value in AQ2 is 5
So value in AR2 should be 17:00:00
Can anyone help me in this please.
I am getting Run Time Error 13 Type mismatch while running a loop.
rn.Offset(0, 2).Value = rn + Time(rn.Offset(0, 1).Value, 0, 0)
I am trying to run this line, but there is some bug in the code.
This is the entire code
Dim rng19 As Range
Set rng19 = Range("ap2:ap" & endrow)
'Adding value 5 in GMT column
For Each rn In rng19
rn.Offset(0, 2).Value = rn + Time(rn.Offset(0, 1).Value, 0, 0)
Next rn
I have three columns, AP2 is original time
AQ 2, value as 5 or 0
Result in AR2 should be AP2+ AQ2.
Value in AP2 is time for example 12:00:00
Value in AQ2 is 5
So value in AR2 should be 17:00:00
Can anyone help me in this please.