Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Row deletion and auto filter

Hi

How do you disallow row deletion, when auto filter is active?

Rich

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default Row deletion and auto filter

the question is more likely how to you allow autofiltering when the sheet is
protected. If the autofilter is already in place (the arrows are visible),
you can then do

with Worksheets("Sheet1")
.EnableAutofilter=True
.Protect Password:="ABCD",UserInterfaceOnly:=True
End With

This will allow the arrows to be used to filter the data while protection
remains.

You need to run this code whenever the workbook is opened or you are going
to apply protection. The userinterfaceonly property can only be set in code.

You might want to use the Workbook_Open event to run the code.

See Chip Pearson's overview of events if you are not familiar with them

http://www.cpearson.com/excel/events.htm

--
Regards,
Tom Ogilvy


"RMJames" wrote:

Hi

How do you disallow row deletion, when auto filter is active?

Rich


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
Row deletion and auto filter RMJames Excel Discussion (Misc queries) 0 March 15th 06 10:09 AM
Cell filter deletion Sergio Excel Discussion (Misc queries) 2 January 6th 06 06:54 PM
Auto Deletion of 4 consecutive rows out of every 5 scratching my head Excel Programming 1 June 1st 05 02:14 PM
Auto Deletion of certain Rows in a spreadsheet scratching my head Excel Programming 1 June 1st 05 07:58 AM
Auto Deletion of 4 consecutive rows out of every 5 filo666 Excel Programming 0 May 31st 05 11:40 PM


All times are GMT +1. The time now is 12:46 PM.

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

About Us

"It's about Microsoft Excel"