Home |
Search |
Today's Posts |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() As requested here is the AutoClose, Sub auto_close() Sheets("Holidays").Select ActiveSheet.Unprotect EnableEvents = False With Application ..EnableEvents = False ..Calculation = xlManual ..MaxChange = 0.001 ..CalculateBeforeSave = False End With ActiveWorkbook.PrecisionAsDisplayed = False Range("A14:AK545").Select Selection.sort Key1:=Range("A14"), Order1:=xlAscending, Header:=xlGuess, _ OrderCustom:=1, MatchCase:=False, Orientation:=xlTopToBottom, _ DataOption1:=xlSortNormal Range("a1").Select Application.DisplayAlerts = False Application.DisplayFormulaBar = True ActiveCell = xlNone With Application ..Calculation = xlAutomatic End With ActiveSheet.Protect ActiveWorkbook.Save End Sub -- Simon Lloyd ------------------------------------------------------------------------ Simon Lloyd's Profile: http://www.excelforum.com/member.php...fo&userid=6708 View this thread: http://www.excelforum.com/showthread...hreadid=497236 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Expanding ranges in macros | Excel Discussion (Misc queries) | |||
How do I sort by ranges? | Excel Discussion (Misc queries) | |||
auto-expanding chart- dynamic ranges | Excel Worksheet Functions | |||
Using Query and expanding named ranges | Excel Discussion (Misc queries) | |||
Named range not expanding with insertions after sort?? | Excel Programming |