+ Reply to Thread
Results 1 to 3 of 3

VBA code to delete rows in a selected range.

  1. #1
    Registered User
    Join Date
    02-20-2009
    Location
    Modesto, California
    MS-Off Ver
    Excel 2003
    Posts
    19

    VBA code to delete rows in a selected range.

    I got the following code from Julian's Macro Tips web site. The code checks for null or empth string values and when they are found deletes those rows. Can anyone help me to rewite this to have it evaluate the active cell and if the value is notbetween 1999 and 3000 then delete those rows that meet the criteria?

    Please Login or Register  to view this content.
    Any help would be much appreciated.
    Last edited by LD2020; 02-20-2009 at 06:34 PM.

  2. #2
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988

    Re: VBA code to delete rows in a selected range.

    Maybe

    Please Login or Register  to view this content.
    VBA Noob
    _________________________________________


    Credo Elvem ipsum etian vivere
    _________________________________________
    A message for cross posters

    Please remember to wrap code.

    Forum Rules

    Please add to your signature if you found this link helpful. Excel links !!!

  3. #3
    Registered User
    Join Date
    02-20-2009
    Location
    Modesto, California
    MS-Off Ver
    Excel 2003
    Posts
    19

    Re: VBA code to delete rows in a selected range.

    Works great. Thanks for your help VBA Noob!

+ Reply to Thread

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