+ Reply to Thread
Results 1 to 2 of 2

Macro - Insert Date if Cell is Blank

  1. #1
    Registered User
    Join Date
    06-15-2012
    Location
    Atlanta, GA
    MS-Off Ver
    Excel 2003
    Posts
    23

    Macro - Insert Date if Cell is Blank

    I have data in rows 2 through 50 (max rows could be variable) of Sheet2. I would like to add a date (located on Sheet1, Cell A2) to column AB if that cell is blank.

    For Example:

    Sheet1, A2 = 7/25/2012
    Sheet2, Rows 2 through 50 have data
    Sheet2, Rows 2 through 49 have data in column AB
    Sheet2, Row 50 does NOT have data in column AB

    I would like to add the date (7/25/2012) to Sheet2, Cell AB50 and change nothing else.

  2. #2
    Valued Forum Contributor StevenM's Avatar
    Join Date
    03-23-2008
    Location
    New Lenox, IL USA
    MS-Off Ver
    2007
    Posts
    910

    Re: Macro - Insert Date if Cell is Blank

    Backup your data.
    Copy code to a standard module.
    Run: AddDate2AB

    Please Login or Register  to view this content.
    P.S. If your last cell in AB is empty, you can change the line:

    Please Login or Register  to view this content.
    And change "AB" to another column which you know will have data in the last row.
    Last edited by StevenM; 07-25-2012 at 10:46 AM. Reason: Added P.S.

+ 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