+ Reply to Thread
Results 1 to 5 of 5

Macro to collect YTD data. I think I have most of it . . .

  1. #1
    Forum Contributor
    Join Date
    09-13-2012
    Location
    Midwest
    MS-Off Ver
    Excel 365
    Posts
    124

    Macro to collect YTD data. I think I have most of it . . .

    I'm trying to get YTD totals per each month via a macro and then post to a cells where I can set a range for a YTD chart. I get zero's when I run the macro. The code below is for one month, then would be repeated for each month. Any help is much appreciated!
    Please Login or Register  to view this content.
    Thank you!

    Luke

  2. #2
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: Macro to collect YTD data. I think I have most of it . . .

    That looks like it works to me. Can you upload a workbook with an example of how your data is structured? To attach a workbook when replying click go advanced and then attachments.

  3. #3
    Forum Contributor
    Join Date
    09-13-2012
    Location
    Midwest
    MS-Off Ver
    Excel 365
    Posts
    124

    Re: Macro to collect YTD data. I think I have most of it . . .

    YTD data.xlsm

    Here you go.
    Thanks for any help.

    Luke

  4. #4
    Forum Contributor
    Join Date
    09-13-2012
    Location
    Midwest
    MS-Off Ver
    Excel 365
    Posts
    124

    Re: Macro to collect YTD data. I think I have most of it . . .

    Any other advice is much appreciated. This should be the last VB fix I need before implementing the program. Thank you!!!!
    - Luke

  5. #5
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: Macro to collect YTD data. I think I have most of it . . .

    The values in the cells are dates not months. So for example, the date is 04/01/2012 and you have a custom format to display only the month. VBA will still compare "04/01/2012" not what you see on the screen. Try this instead:
    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)

Tags for this Thread

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