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

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).

adam_neb

Board Regular
Joined
Jun 9, 2002
Messages
101
Of course, that should be "Macro" - Where, oh where did my Macro go?
 

jproffer

Well-known Member
Joined
Dec 15, 2004
Messages
2,647
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.
 

Forum statistics

Threads
1,148,526
Messages
5,747,211
Members
424,068
Latest member
Salim khamis

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
Top