Wardylewis
New Member
- Joined
- Jun 7, 2016
- Messages
- 37
Good Afternoon,
I have created a sheet which pulls information from another sheet to generate an easy to read plan.
However due to the formulas in the cell is
When I do a standard sort it works for a split second and then changes and gives me a different result every time I sort.
I have tried to take a look online to edit the Macro I have done but am really struggling to get my head around it.
Any help would be greatly appreciated.
I have created a sheet which pulls information from another sheet to generate an easy to read plan.
However due to the formulas in the cell is
Code:
=IFERROR(LOOKUP(2,1/('Data Input'!$A$1:$A$2500='Live Check'!$A661),'Data Input'!$R$1:$R$2500),"No Records Held")
When I do a standard sort it works for a split second and then changes and gives me a different result every time I sort.
I have tried to take a look online to edit the Macro I have done but am really struggling to get my head around it.
Code:
Sub Sort()'
' Sort Macro
'
'
Dim rangeToSort As Range
ActiveWorkbook.Worksheets("Live Check").ListObjects("Table1").Sort.SortFields. _
Clear
ActiveWorkbook.Worksheets("Live Check").ListObjects("Table1").Sort.SortFields. _
Add Key:=Range("Table1[[#All],[Next Test Date]]"), SortOn:= _
xlSortOnValues, Order:=xlAscending, DataOption:=xlSortNormal
With ActiveWorkbook.Worksheets("Live Check").ListObjects("Table1").Sort
.Header = xlYes
.MatchCase = False
.Orientation = xlTopToBottom
.SortMethod = xlPinYin
.Apply
End With
End Sub
Any help would be greatly appreciated.