+ Reply to Thread
Results 1 to 4 of 4

Possible to write DateAdd output to a cell VBA Macro?

  1. #1
    Registered User
    Join Date
    06-10-2004
    Posts
    22

    Possible to write DateAdd output to a cell VBA Macro?

    All,

    I have an issue with a macro where I'm trying to populate a cell with the results of a DateAdd formula.

    This is a monthly report that is ran the 1st of each month.

    I'm trying to specify a range to get the Max() of the existing dates for column I and then use the DateAdd to advance it one month. I've attached sample data and the corresponding macro. I'm not sure I'm getting the "rng" populated correctly.

    Thanks for any help you can provide.

    Brian
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Possible to write DateAdd output to a cell VBA Macro?

    Does this help?

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    06-10-2004
    Posts
    22

    Re: Possible to write DateAdd output to a cell VBA Macro?

    WOW, that rocks. Thank you soooo much!

  4. #4
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Possible to write DateAdd output to a cell VBA Macro?

    You're welcome. Glad to help out and thanks for the feedback. Please comply with Forum Rules and mark this thread as solved.

+ 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