Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
I have a file that I want the user to click an insert button and not
be able to insert rows. I have protected the sheet, except for the area they can enter data into and have created another Sort button. My code keeps errors at the sort stage. Any help is appreciated. Private Sub NFP_Sort_Click() Const PWORD As String = "123456" Application.ScreenUpdating = False With Worksheets("Southeast - NFP") .Select .Unprotect Password:=PWORD .Range("NFP_Sort").Select .Sort Key1:=Range("Q7"), Order1:=xlDescending, Header:=xlGuess, _ OrderCustom:=1, MatchCase:=False, Orientation:=xlTopToBottom, _ DataOption1:=xlSortNormal .Range("Total_NFP").Select .Protect Password:=PWORD End With Application.ScreenUpdating = False End Sub Thanks, Scott |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]() See your other posts and please read this... http://www.cpearson.com/excel/newposte.htm -- Jim Cone San Francisco, USA http://www.realezsites.com/bus/primitivesoftware (Excel Add-ins / Excel Programming) "Scott Halper" wrote in message I have a file that I want the user to click an insert button and not be able to insert rows. I have protected the sheet, except for the area they can enter data into and have created another Sort button. My code keeps errors at the sort stage. Any help is appreciated. -snip- Thanks, Scott |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Sorting VLookup vs Sorting SumProduct | Excel Discussion (Misc queries) | |||
Counting instances of found text (Excel error? Or user error?) | Excel Worksheet Functions | |||
Sorting error | Excel Discussion (Misc queries) | |||
sorting error | Excel Discussion (Misc queries) | |||
sorting error | Excel Worksheet Functions |