A complete newbie here trying to record a Macro to an arduous task. I collect information each month and then have to sort the Data by highest value. Starting in Column L I have a product name, then in Column M the sales for the month. Each month I go in highlight the data in Columns L and M and Sort by Column M, Highest value first.
This continues in exactly the same way over to Column BY. So I do the same thing in Column N/O, P/Q, R/S etc etc.
I tried to record a Macro. I’m using Excel 2016. I went to Developer/Code/Record Macro. Typed in a Macro Name. Left Store Macro in: This Workbook and pressed OK.
I then went and done my ‘Sorting’. Once I had finished I pressed Stop Recording in Developer/Code.
I then tried to Run the Macro to see if it worked by going to Developer/Code/Macros/Run and I get the following error message:
Microsoft Visual Basic for Applications
Compile error:
Invalid Outside Procedure
In the VBA Box above it says:
Worksheets(“Sheet1”).PrintOut From:=2, To:=3
End Sub
Does anyone know what I am doing wrong???
Thanks for any advice.
This continues in exactly the same way over to Column BY. So I do the same thing in Column N/O, P/Q, R/S etc etc.
I tried to record a Macro. I’m using Excel 2016. I went to Developer/Code/Record Macro. Typed in a Macro Name. Left Store Macro in: This Workbook and pressed OK.
I then went and done my ‘Sorting’. Once I had finished I pressed Stop Recording in Developer/Code.
I then tried to Run the Macro to see if it worked by going to Developer/Code/Macros/Run and I get the following error message:
Microsoft Visual Basic for Applications
Compile error:
Invalid Outside Procedure
In the VBA Box above it says:
Worksheets(“Sheet1”).PrintOut From:=2, To:=3
End Sub
Does anyone know what I am doing wrong???
Thanks for any advice.