Hi,
I run a macro everyday and have been using 2003 until just recently. Our office has switched over to 2007 and now the macro is erroring out. I have tried a few things but nothing seems to work.
I'm receiving a "Run-time-error' -2147417848 (80010108)' Method 'Sort' of object 'Range' failed", and then the workbook locks up and I have to force quit.
Here's the code that debugger highlights:
I run a macro everyday and have been using 2003 until just recently. Our office has switched over to 2007 and now the macro is erroring out. I have tried a few things but nothing seems to work.
I'm receiving a "Run-time-error' -2147417848 (80010108)' Method 'Sort' of object 'Range' failed", and then the workbook locks up and I have to force quit.
Here's the code that debugger highlights:
Code:
Range(Range("TableStart"), Range("TableLastCol").Offset(jobcount - 1, 0)).Sort _
Key1:=Range("B50"), Order1:=xlAscending