Results 1 to 9 of 9

VBA Command to delete the rows.

Threaded View

  1. #1
    Registered User
    Join Date
    09-23-2010
    Location
    India
    MS-Off Ver
    Excel 2003
    Posts
    56

    VBA Command to delete the rows.

    Hello,

    I have created the below macro code to delete all the rows containing "account" in column B.

    Can you please help me using the below VBA codes, using IF...THEN condition.

    Range("B1").Select
    Selection.AutoFilter Field:=1, Criteria1:="=*account*", Operator:=xlAnd
    Range(Selection, Selection.End(xlDown)).Select
    Selection.Delete Shift:=xlUp
    Last edited by mohan_rajun; 10-25-2010 at 06:44 AM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1