Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
With Worksheets("mySheet")
.Unprotect password:="mypassword" .Range("A1:M20").Sort Key1:=.Range("C1"), Header:=xlYes .Protect password:="mypassword", DrawingObjects:=True, Contents:=True, Scenarios:=True End With -- --- HTH Bob (change the xxxx to gmail if mailing direct) "Sarah_Lecturer" wrote in message ... Hiya I need some code to 1) Unprotect the workbook with the password 2) Select relevant column eg Surname 3) Sort into alphabetical order 4) Reprotect the spreadsheet with the same original password Any suggestions - Id be grateful Thanks |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
varying table length in a MACRO | Excel Discussion (Misc queries) | |||
Can data be sorted by the length in a field | Excel Worksheet Functions | |||
Web Query from multiple varying length pages | Excel Worksheet Functions | |||
Sorted Fixed Length String | Excel Programming | |||
extracting data from a text string of varying length | Excel Discussion (Misc queries) |