I need a spreadsheet to be sorted in order to perform a calculation.
I've tried different code, and get an unspecified error. The newest code I have also does the same. I know the bug is here, since code runs fine when I take it out. Here's the current code:
inputws.Columns("A:M").Sort key1:=Range("G2"), order1:=xlAscending, Header:=xlYes
I need column G to be in ascending order and of course, have the other columns comply as well. Yet, this is giving me errors.
I've also tried unsorting before running the code (so the code can then sort it) and still get an error.