This may be a bit of a long shot but I'm at my wits end, any help would be much appreciated.
The following line of code works on the first half of my grid, but never on a row greater than row 55 !
I have used F8 to step through my code, if the starting point is on row 55 and it works perfectly, row 56 or greater it fails to include the first time component. Grrrr
When stepping through with F8 there is no difference at all between the line of code selected or the values (input row 55 or 56), incidentally there are 42 F8 presses to get to this line.
ActiveCell.FormulaR1C1 = Format(ActiveCell.Offset.Cells(R - 8, 1).Value, "hh:mm") _
& " " & Range("J" & (ActiveCell.Row)).Value & " Fixed Post " & _
Format(ActiveCell.Offset.Cells(R - 8, 1).Value + 0.0417, "hh:mm")
the Offset referred to is a row of Times 07:00, 07:01, 07:02 etc on row 8
R = ActiveCell.Row
Range J is a list of Staff Names
After this line is processed if the input was higher than row 55 the Time is not included! but the staff name & 1 hour at the end are.
I know this is tough to follow but after many hours I'm really stuck, thanks for reading
Mike
The following line of code works on the first half of my grid, but never on a row greater than row 55 !
I have used F8 to step through my code, if the starting point is on row 55 and it works perfectly, row 56 or greater it fails to include the first time component. Grrrr
When stepping through with F8 there is no difference at all between the line of code selected or the values (input row 55 or 56), incidentally there are 42 F8 presses to get to this line.
ActiveCell.FormulaR1C1 = Format(ActiveCell.Offset.Cells(R - 8, 1).Value, "hh:mm") _
& " " & Range("J" & (ActiveCell.Row)).Value & " Fixed Post " & _
Format(ActiveCell.Offset.Cells(R - 8, 1).Value + 0.0417, "hh:mm")
the Offset referred to is a row of Times 07:00, 07:01, 07:02 etc on row 8
R = ActiveCell.Row
Range J is a list of Staff Names
After this line is processed if the input was higher than row 55 the Time is not included! but the staff name & 1 hour at the end are.
I know this is tough to follow but after many hours I'm really stuck, thanks for reading
Mike