+ Reply to Thread
Results 1 to 3 of 3

VB to delete range in rows based on value of cell

  1. #1
    Registered User
    Join Date
    03-20-2019
    Location
    Utah
    MS-Off Ver
    2019
    Posts
    4

    VB to delete range in rows based on value of cell

    Hello all,

    I am new to writing and learning macros and am stumbling through them. I have tried several variations of code to try and get something to work but have not yet found one that I can edit and use.

    What I am trying to do is the following:

    If the information in column A of a particular row (between rows 5 and 38) is blank then I need to delete everything from column A through column E in that row and shift the cells below that up.

    I am sure this is a fairly easy macro to write but I am not able to work my way through it yet.

    Thank you for any help you can give.

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,482

    Re: VB to delete range in rows based on value of cell

    You can loop starting from row 38

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    03-20-2019
    Location
    Utah
    MS-Off Ver
    2019
    Posts
    4

    Re: VB to delete range in rows based on value of cell

    That did exactly what I needed. Thank you!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Rows delete formula as per range of cell values with counter to delete # rows
    By qureshi2016 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-03-2017, 09:35 AM
  2. [SOLVED] VBA to Delete Rows based on Column F value for Dynamic Range
    By bilich in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 12-12-2016, 03:30 PM
  3. [SOLVED] Delete rows in defined range based on cell value
    By Villalobos in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-19-2016, 01:23 PM
  4. [SOLVED] Delete rows based on date range
    By hommeg in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-20-2015, 04:59 PM
  5. Delete a range of rows based on a known and unknown text value
    By rjssl in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-16-2013, 10:37 AM
  6. Delete Rows based on date range.
    By ge0rge in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-13-2009, 10:52 AM
  7. Delete rows based on date range entered?
    By fzrdiva in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-29-2006, 08:52 AM

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