+ Reply to Thread
Results 1 to 4 of 4

VBA to find/fill column based on date

  1. #1
    Registered User
    Join Date
    06-03-2014
    Posts
    14

    VBA to find/fill column based on date

    Hey,
    Need help with this problem I have. I'm trying to create a VBA/Macro that fills out the information in a particular column based on the date.
    -If Today()'s date is before a particular date in Row A then it fills out the column immediately to the right one.
    --Ex: Today's date is 4/19. P1 is 4/15 and Q1 is 4/22, so I'd like the macro to fill in Column Q starting with the first avaiable blank in the Column
    --Ex: If I run this again tomorrow 4/20, it would just update Column Q
    --Ex: If I run this again on 4/22, I'd like it to fill in Column R.

    Attached is my example. Thanks in advance!
    Attached Files Attached Files

  2. #2
    Forum Expert Kenneth Hobson's Avatar
    Join Date
    02-05-2007
    Location
    Tecumseh, OK
    MS-Off Ver
    Office 365, Win10Home
    Posts
    2,573

    Re: VBA to find/fill column based on date

    Fill in column Q with what?

    It is easy enough to get column Q's first blank cell.

    I would recommend using a tracking sheet. It would add the current date each day that you ran the macro. This would be checked so that it would not add duplicates if you ran it more than once per day, unless that is what you want.

  3. #3
    Registered User
    Join Date
    06-03-2014
    Posts
    14

    Re: VBA to find/fill column based on date

    Ok, well it wouldn't have to be run everyday, only occasionally and for column Q i have other formulas that I would add in. just trying to get the code down to for this date situation under control first. thanks for your suggestion though.

  4. #4
    Forum Expert Kenneth Hobson's Avatar
    Join Date
    02-05-2007
    Location
    Tecumseh, OK
    MS-Off Ver
    Office 365, Win10Home
    Posts
    2,573

    Re: VBA to find/fill column based on date

    Please Login or Register  to view this content.

+ 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] How to fill an array with values in column C based on Column D date value of Today
    By jrtraylor in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 01-10-2016, 07:44 PM
  2. Replies: 3
    Last Post: 05-28-2014, 12:01 PM
  3. [SOLVED] Find the most recent date in a column based on a name in a different column
    By Tamarissa in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-22-2014, 10:10 AM
  4. [SOLVED] Auto fill a column based on date and color a column if past that date
    By thegunder in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-29-2013, 03:06 PM
  5. Replies: 3
    Last Post: 04-12-2013, 04:36 PM
  6. [SOLVED] Auto Fill Column with Date based on rows in other column
    By JOUIOUI in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-06-2006, 01:35 PM
  7. Fill a column in a worksheet from a formula worksheet based on the date
    By NadiaR in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-15-2006, 06:45 PM

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