Results 1 to 6 of 6

Conditional Shifting Cells to the Left Macros

Threaded View

  1. #1
    Forum Contributor
    Join Date
    01-28-2010
    Location
    NY
    MS-Off Ver
    Excel 2003
    Posts
    105

    Conditional Shifting Cells to the Left Macros

    The following is my last question for today:

    In Row B I have a list of dates such as "Dec-31-2006", "Dec-31-2007", "Dec-31-2008","Dec-31-2009".
    These dates begin in Cell B5.

    I would like to create the following Macros:
    If the function Right(B5,4) is less than 2008, delete B5:B21 by shifting cells to the left. Then I want the same condition to run again on the new B5 (from the cells that got shifted in), until there is a point where the function Right(B5,4)=>2008.

    I want this Macros to run on all worksheets within my workbook. As a result there are some worksheets that might have an empty B5. I do not want these worksheets to have the macros run on them

    Thank you so much for looking at my query.
    Last edited by undergraduate; 01-13-2011 at 07:25 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