A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
Historically, "relative recording" has only referred to how it deals with range references.
So, if you select the cell 2 rows down from the active cell in relative mode it will record
ActiveCell.Offset(2,0).Select and in absolute mode it will record e.g. Range("D4").Select
Whether recording relative or absolute mostly the code works on the ActiveSheet.
I would regard it as strange that the code for the Sort method includes a specific sheet reference - whether in relative or absolute mode.
It is arguably a bug in the macro recorded code; if you feel it should be corrected you could post the suggestion on http://excel.uservoice.com . If I had any votes left I would support it!
Meanwhile, just replace all occurrences of ActiveWorkbook.Worksheets("Sheet1").Sort with ActiveSheet.Sort