#1   Report Post  
Posted to microsoft.public.excel.misc
JackR
 
Posts: n/a
Default Locked Cells Sorting

I have a sheet with a Range of A1:n2500. A1 to N1 are headers. I want to sort
the A2:N2500 data based on the header in C1. Some of the cells are locked
because I have formulas and dont want anyone to change these, and some are
unlocked. When I protect the sheet I check sort and selected unlocked cells.
When I go to srt, I get an error that Excel cant sort based on locked cells.

Anyone that can help me on this, or suggest an alternative VBA code. I am
not real up on VBA. Thanks, For any help
  #2   Report Post  
Posted to microsoft.public.excel.misc
Doug Kanter
 
Posts: n/a
Default Locked Cells Sorting

"JackR" wrote in message
...
I have a sheet with a Range of A1:n2500. A1 to N1 are headers. I want to
sort
the A2:N2500 data based on the header in C1. Some of the cells are locked
because I have formulas and dont want anyone to change these, and some are
unlocked. When I protect the sheet I check sort and selected unlocked
cells.
When I go to srt, I get an error that Excel cant sort based on locked
cells.

Anyone that can help me on this, or suggest an alternative VBA code. I am
not real up on VBA. Thanks, For any help


How about UNlocking via code, doing the sort, then locking again? I don't
know if the password can be embedded in the code, but it might not even be
necessary. I made a sheet for other users and protected it, not because I
thought anyone would try anything evil, but just to guard against slips of
the finger or mouse. I locked the sheet WITHOUT a password. In 12 years,
nobody has figured this out. They don't even try.


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Linking Groups of cells between workbooks vnacj-joe Excel Discussion (Misc queries) 4 June 14th 07 06:18 PM
Excel locked cells Dave Semple Excel Discussion (Misc queries) 1 February 7th 06 08:06 PM
checking that cells have a value before the workbook will close kcdonaldson Excel Worksheet Functions 8 December 5th 05 05:57 PM
import with locked cells? Robert Excel Worksheet Functions 0 November 17th 05 07:39 PM
Problem sorting cells containing hyperlinks cottonchipper Excel Worksheet Functions 1 November 5th 05 04:08 PM


All times are GMT +1. The time now is 07:44 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"