Where did my marco go?

adam_neb

Board Regular
Joined
Jun 9, 2002
Messages
101
I created a macro before vacation:

Sub SORT_LANES()

Range("A2", Range("M65536").End(xlUp).Address).Select
Selection.Sort Key1:=Range("L2"), Order1:=xlAscending _
, Key2:=Range("K2"), Order2:=xlAscending _

Selection.Sort Key1:=Range("F2"), Order1:=xlAscending _
, Key2:=Range("E2"), Order2:=xlAscending _
, Key3:=Range("G2"), Order3:=xlAscending

Selection.Sort Key1:=Range("C2"), Order1:=xlAscending _
, Key2:=Range("B2"), Order2:=xlAscending _
, Key3:=Range("D2"), Order3:=xlAscending

End Sub

Now it will not work. I tested it several times before I closed up and left, and when I open the workbook containing the macro, I get the promt and Enable Macros, but when I run it - nothing! Augh! Any ideas what I did wrong???
Adam
 

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.
Try looking in "PERSONAL.XLS", open vba(alt-F11), open the project manager(cntrl-R), and look for it, check all the modules, you may have inadvertently saved it there, if so just copy and paste it to a module in your workbook, or wherever you want it.
 
Upvote 0

Forum statistics

Threads
1,222,227
Messages
6,164,722
Members
451,912
Latest member
HMF009

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top