Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35
Default delete rows autofilter

Hi!

Always I want to delete a Row there's an error. When I deactivte the
Autofilter it works fine. Is there a way to delete a row while the
Autofilter is activatet?

thx
masterphilch
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 184
Default delete rows autofilter

Can you supply an example of the code you use to delete rows along with
the error message?

Regards, Lonnie M.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35
Default delete rows autofilter

Rows(xy).Delete

And the Autofilter (not on the same row!) is activatet! Or do you need
some more informations?


Lonnie M. wrote:

Can you supply an example of the code you use to delete rows along with
the error message?

Regards, Lonnie M.

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 184
Default delete rows autofilter

I am still not exactly clear on what exactly you are trying to do, but
here is my response based on my best guess. See the following post (you
will need to modify to serve your needs):

############################################
############################################
############################################
Ron de Bruin Apr 6 2003, 1:32 pm

Newsgroups: microsoft.public.excel.programming
From: "Ron de Bruin" - Find messages by this
author
Date: Sun, 6 Apr 2003 22:32:24 +0200
Local: Sun, Apr 6 2003 1:32 pm
Subject: Use VBA to autofilter and then delete rows based on
blanks...

Use this one instead if they are really empty


Public Sub DeleteBlankRows()
On Error Resume Next 'In case there are no blank rows
Columns("C").SpecialCells(xlCellTypeBlanks).Entire Row.Delete
On Error GoTo 0
End Sub
############################################
############################################
############################################

I am not sure the criteria that you are trying to use, but it is likely
that you are trying to delete based on the visible cells. If that is
the case xlCellTypeVisible should be substituted in place of
xlCellTypeBlanks.
Hopefully this gives you some direction to go in--Lonnie M.

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
Delete options for AutoFilter? Jojjjo Excel Worksheet Functions 2 March 31st 08 07:19 AM
How to delete rows when List toolbar's "delete" isnt highlighted? Linda Excel Worksheet Functions 1 May 26th 05 08:39 PM
excel needs feature to delete blanks when autofilter is used. bobz666 Excel Discussion (Misc queries) 7 February 9th 05 05:33 AM
Delete every 3rd row, then delete rows 2-7, move info f/every 2nd row up one to the end and delete the row below Annette[_4_] Excel Programming 2 September 21st 04 02:40 PM
Delete results of Autofilter??? Kobayashi[_31_] Excel Programming 4 February 18th 04 05:37 PM


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