+ Reply to Thread
Results 1 to 5 of 5

Automate report Generation

  1. #1
    Registered User
    Join Date
    06-17-2009
    Location
    Canada
    MS-Off Ver
    Office 2010
    Posts
    84

    Automate report Generation

    I have multiple files that I need to get data from.
    My dream is to push a button and gather the data from variable files. (I know how to make the button and get data from single file).


    The file name is below:

    Cell A1 contains this formula ='C:Reports\Year 2009\[CityWaterReports Jan 2009.xls]PHFlows'!$B$44
    Cell A2 contains this formula ='C:Reports\Year 2009\[CityWaterReports Feb 2009.xls]PHFlows'!$B$44
    and so on.

    I would like the customer to be able to push the button and be asked to enter the year(eg: 2008) and have the formula update to the new year in each cell.

    Any ideas on how to do this?
    Last edited by Epscan; 06-22-2009 at 12:10 PM. Reason: Solved

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Automate report Generation

    This should get you started:
    Please Login or Register  to view this content.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Forum Contributor
    Join Date
    02-27-2008
    Posts
    764

    Re: Automate report Generation

    Hi
    Save the attached file in the folder containing reports and run the macro.
    It will list file names in col A and value of B44 in col B for all workbooks
    for the year specified by the customer.
    Ravi
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    06-17-2009
    Location
    Canada
    MS-Off Ver
    Office 2010
    Posts
    84

    Re: Automate report Generation

    JBeaucaire your solution seems to work as I need it.

    ravishankar it does work but not quite as needed.

    Thanks to you both for the fast reply

  5. #5
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Automate report Generation

    If that takes care of your need, be sure to EDIT your original post, click Go Advanced and mark the PREFIX box [SOLVED].


    (Also, use the blue "scales" icon in our posts to leave Reputation Feedback, it is appreciated)

+ 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