+ Reply to Thread
Results 1 to 7 of 7

Problem building automatic progress report updater

  1. #1
    Registered User
    Join Date
    05-04-2015
    Location
    Rotterdam, The Netherlands
    MS-Off Ver
    2013
    Posts
    16

    Problem building automatic progress report updater

    Dear all,

    As the title says, I'm having troubles building a macro which updates the progress of a current project.
    I've got a sheet with a waterfall-like detailed planning of the project, which shows the progress (in %) of the project streams.

    What I'm building is a function to take this progress percentage (updates per day) and copy it in another table (different sheet) which is linked to a chart, graphically showing the progress.
    The copying part is all alright and I can perform the macro with a button, but now my problem is that it is not copying & pasting the right progress made in terms of the date.
    What I need, in short, is to upgrade my macro to copy the progress percentage and paste it in the cell resembling the correct date (= today).

    This is my current code:
    Please Login or Register  to view this content.
    I know the code is very 'unwieldy', but up to now it did the trick (see the warning added in the button click event), since I am a VBA dummy.
    By the way, due to confidentiality the code/file is a mock version.
    Can you guys help me to upgrade the macro? Please regard the file for a simple version of the problem: MacroForHelp.xlsm

    Cheers,
    Lennart

    PS: is it possible to update the progress chart without opening the excel/clicking the button? So updating happens 'under the water'?
    PPS: If you forget to update the progress chart daily and for example update 4 days later, is it possible to include the missed days in the macro (which would be prevented if PS works out)

  2. #2
    Forum Expert nilem's Avatar
    Join Date
    10-22-2011
    Location
    Ufa, Russia
    MS-Off Ver
    2013
    Posts
    3,377

    Re: Problem building automatic progress report updater

    maybe something like this
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    05-04-2015
    Location
    Rotterdam, The Netherlands
    MS-Off Ver
    2013
    Posts
    16

    Re: Problem building automatic progress report updater

    Thanks for the reply, nilem.
    I've implemented it in my mock sheet, and it works perfectly there. However, in my real sheet it doesn't, maybe because I don't entirely understand the code.
    What does the 'dt +3 part' mean, for example? I think I have to change that part as well.
    Additionally, starting the 'With' with stating the sheet, does that mean you select/activate it? My macro button is on another sheet and the macro copied content on this sheet...

    Thanks in advance!

  4. #4
    Registered User
    Join Date
    05-04-2015
    Location
    Rotterdam, The Netherlands
    MS-Off Ver
    2013
    Posts
    16

    Re: Problem building automatic progress report updater

    Excuses, double post

  5. #5
    Forum Expert nilem's Avatar
    Join Date
    10-22-2011
    Location
    Ufa, Russia
    MS-Off Ver
    2013
    Posts
    3,377

    Re: Problem building automatic progress report updater

    'dt' is the difference in days between now and the start date (20 in this case). 'dt + 3' (ie, 23) is the column number with today's date.
    'With Sheets("Sheet1")' means a reference to the Sheet1, the Sheet1 is not activated.
    And oops, I forgot "." before Cells (I always forget them)
    Please Login or Register  to view this content.

  6. #6
    Registered User
    Join Date
    05-04-2015
    Location
    Rotterdam, The Netherlands
    MS-Off Ver
    2013
    Posts
    16

    Re: Problem building automatic progress report updater

    Alright, that makes it more clear.
    In other words, it account for the three columns between the start of the workbook and the first date.
    I got it to work now, hope it still does when I'll update it tomorrow .
    Thanks for the help anyway, if needed I'll post again.

    Cheers!

  7. #7
    Registered User
    Join Date
    05-04-2015
    Location
    Rotterdam, The Netherlands
    MS-Off Ver
    2013
    Posts
    16

    Re: Problem building automatic progress report updater

    Guys, nilem,

    The update as-is works like a gem, thanks!
    Now, there is another little tweak I'd like to implement: say, you forget to update the table for 5 days. In the current situation, when you hit the update button you'll add only the status as of the day of updating. Would it be possible to include the progress made in the previous days (so, those days when you forgot to update) when updating?
    I'd like to hear from you!

+ 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. Attempting to build a self-updating progress report
    By ElandEl in forum Excel General
    Replies: 0
    Last Post: 07-08-2015, 09:54 AM
  2. Daily Progress Report
    By MdYas in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-21-2014, 06:43 AM
  3. Building a Summary Report
    By Matty5894 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-07-2014, 04:33 AM
  4. Replies: 2
    Last Post: 06-29-2011, 04:35 PM
  5. Best way to create an automatic updater
    By wilro85 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-14-2007, 04:42 PM
  6. Creating an automatic range updater
    By Gurnetp in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-02-2007, 03:21 PM
  7. building code for an individual report
    By alymcmorland in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-07-2005, 09:10 PM

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