+ Reply to Thread
Results 1 to 6 of 6

Delete Cells Current Region Dynamic Range

  1. #1
    Registered User
    Join Date
    05-27-2011
    Location
    Virginia
    MS-Off Ver
    Excel 365
    Posts
    86

    Delete Cells Current Region Dynamic Range

    Hi,

    I would like to have a macro which would look at the last column of range a1 current region. If the cell's value is CANCELED, I'd like for it and all cells back to the left on the same row to column A to be deleted and shift cells up. For example on today the last column of the range a1 current region might be column G. Therefore if in column G the cell's value is CANCELED, that cell and all cells to the left back to column a on the same row will be deleted. Tomorrow the last column of a1 current region may be column J. I'd like to do the same starting at column J back through column A on the same row. I use row one for my header row. Any assistance you provide will be greatly appreciated.

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,503

    Re: Delete Cells Current Region Dynamic Range

    Attach a sample workbook (not a picture or pasted copy). Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Registered User
    Join Date
    05-27-2011
    Location
    Virginia
    MS-Off Ver
    Excel 365
    Posts
    86

    Re: Delete Cells Current Region Dynamic Range

    Thanks for responding TMS. I will attach the sample file. Thanks again.
    Attached Files Attached Files

  4. #4
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,097

    Re: Delete Cells Current Region Dynamic Range

    How about
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    05-27-2011
    Location
    Virginia
    MS-Off Ver
    Excel 365
    Posts
    86

    Re: Delete Cells Current Region Dynamic Range

    Fantastic, thank you Fluff works like a charm.

  6. #6
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,097

    Re: Delete Cells Current Region Dynamic Range

    You're welcome & thanks for the feedback

+ 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. [SOLVED] Column D Current Region
    By sl729 in forum Excel General
    Replies: 7
    Last Post: 09-13-2016, 01:35 PM
  2. [SOLVED] Using current region
    By ammartino44 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 08-10-2015, 04:39 PM
  3. Select current region except blank cells
    By mgblair in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-02-2015, 09:51 AM
  4. Replies: 1
    Last Post: 10-04-2007, 12:04 PM
  5. current region = name
    By by1612 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-27-2007, 06:58 PM
  6. Replies: 2
    Last Post: 05-29-2006, 12:30 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