Hi All a piece of my code below throws an error if there I only one row found as out put. If it is working on more than one row it works fine though.
I have only included the naughty section of the macro
MyCode:
Dim LZ As Long
LZ = ActiveSheet.UsedRange.Find("*", SearchDirection:=xlPrevious, SearchOrder:=xlByRows).Row
Range("AM2").AutoFill Destination:=Range("AM2:AM" & LZ)