S
S Himmelrich
Dim LastRow99 As Long
LastRow99 = .Cells(.Rows.Count, "A").End(xlUp).Row
ActiveWorkbook.Worksheets("Working Sheet").Sort.SortFields.Clear
ActiveWorkbook.Worksheets("Working Sheet").Sort.SortFields.Add
Key:=Range( _
LastRow99), SortOn:=xlSortOnValues, Order:=xlAscending,
DataOption:= _
xlSortNormal
I get Run-time error '1004':
Method 'Range' of object '_Global' failed
LastRow99 = .Cells(.Rows.Count, "A").End(xlUp).Row
ActiveWorkbook.Worksheets("Working Sheet").Sort.SortFields.Clear
ActiveWorkbook.Worksheets("Working Sheet").Sort.SortFields.Add
Key:=Range( _
LastRow99), SortOn:=xlSortOnValues, Order:=xlAscending,
DataOption:= _
xlSortNormal
I get Run-time error '1004':
Method 'Range' of object '_Global' failed