LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 90
Default search locked cells

I have data some of which is locked, but need to be able to filter this
ideally i would like to do this without unlocking the cells is this possible?

At the moment I have the following code used to put filter option on or off,
but when i put it on it locks the cells so doesnt work how can i get it to
only lock if filter is off?

Sub Filter()
Sheets("samples").Select
Cells.Select
ActiveSheet.Unprotect Password
Range("A3:F3").Select
Selection.AutoFilter
Sheets("samples").Select
Cells.Select
ActiveSheet.Protect Password
End Sub

Thanks
 
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
Locked worksheet & hyperlinks (w/ select locked cells unchecked) dgold82 Excel Discussion (Misc queries) 1 July 10th 09 09:42 PM
paste locked cells and unlocked cells in protected sheet Angeline Excel Worksheet Functions 15 November 1st 06 11:51 PM
Put comments on a locked spreadsheet even though cells not locked RDP Excel Worksheet Functions 1 September 11th 05 11:59 PM
I want the macros to be locked up when cells are locked up. Ed Excel Programming 6 February 20th 05 01:31 AM
Search for Locked Excel files MudMan Excel Programming 0 January 26th 04 07:45 PM


All times are GMT +1. The time now is 12:04 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"