How do I include a prompt for a user to enter a password when unprotecting a worksheet. Here is the procedure.. I have to unprotect sheet to sort and then I want to re-protect afterwards.
Code:
Range("C5:L1500").Select
Selection.Sort Key1:=Range("C6"), Order1:=xlAscending, Header:=xlGuess, _
OrderCustom:=1, MatchCase:=False, Orientation:=xlTopToBottom, _
DataOption1:=xlSortNormal
Range("C6").Select