+ Reply to Thread
Results 1 to 15 of 15

Browse window: Importing data onto a new line in another spreadsheet

  1. #1
    Registered User
    Join Date
    01-24-2013
    Location
    Manchester
    MS-Off Ver
    Excel 2007
    Posts
    24

    Browse window: Importing data onto a new line in another spreadsheet

    Hi there,

    We run multiple projects and have trackers for our budgets. All of this information is visible on a summary page.

    My manager would like to be able to import some of the values on these summary sheets into a master sheet, putting the vital stats from each project on a new line.

    Can I add a 'Browse' button where he could click it, navigate to the new project's tracker and it would automatically import the vital stats from that tracker on the next available line?

    I've attached an example summary tracker sheet, plus an example of the master sheet that my manager would want to import the data into. I've noted on the master for my manager which cells from the summary tracker I would want the data for.

    I can see this being a one-step process for my manager, he simply selects the new project file and it imports all the info he needs! All projects will use the same template so the summary page will not change.

    Sorry if this sounds confusing, happy to confirm things if there are any questions.

    PS - I'm not well versed in VBA yet so if the solution uses it, a help on how to get started on it would be great.

    Thanks!

    Summary Tracker Example.xlsxManagers Master EXAMPLE.xlsx

  2. #2
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Browse window: Importing data onto a new line in another spreadsheet

    Hi jennymc

    My approach would be with VBA...I'm thinking with a UserForm from which your manager will select the Project from which he wishes to extract data. The data will then be written to his Master on the next available line.

    Are all Projects in the same Folder? Is the Summary Sheet always the First Sheet in the Project File?
    John

    If you have issues with Code I've provided, I appreciate your feedback.

    In the event Code provided resolves your issue, please mark your Thread as SOLVED.

    If you're satisfied by any members response to your issue please use the star icon at the lower left of their post.

  3. #3
    Registered User
    Join Date
    01-24-2013
    Location
    Manchester
    MS-Off Ver
    Excel 2007
    Posts
    24

    Re: Browse window: Importing data onto a new line in another spreadsheet

    Hi Jaslake,

    Thanks for picking this up!

    The projects will be in different folders eg "C:/Finance/Project 1/project1file.xls" and "C:/Finance/Project 2/project2file.xls". The names of the project folders will not be consistent, nor will the names of the files.

    The good news is that the data required will always be on the first tab, named "Summary"

    Hope this helps :o)

    Jenny

  4. #4
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Browse window: Importing data onto a new line in another spreadsheet

    Hi jennymc

    The Project Folders will always be in "C:/Finance/"?

  5. #5
    Registered User
    Join Date
    01-24-2013
    Location
    Manchester
    MS-Off Ver
    Excel 2007
    Posts
    24

    Re: Browse window: Importing data onto a new line in another spreadsheet

    A path like that, yes.

    Thanks!

  6. #6
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Browse window: Importing data onto a new line in another spreadsheet

    Hi jennymc

    Try the Code in the attached...let me know of issues.

    This Code defines the Start Drive and the Start Folder and assumes your Project Files are in "C:\Finance\"...change as required
    Please Login or Register  to view this content.
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    01-24-2013
    Location
    Manchester
    MS-Off Ver
    Excel 2007
    Posts
    24

    Re: Browse window: Importing data onto a new line in another spreadsheet

    Oh my god this is AMAZING!!! Thank you soooo much - it does exacly what I wanted... Maybe someday I'll know as much as you!

  8. #8
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Browse window: Importing data onto a new line in another spreadsheet

    You're welcome...glad I could help. Thanks for the Rep.

    If this resolves your issue please mark your Thread as SOLVED.

    New quick method:
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

    Or you can use this way:
    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save

  9. #9
    Registered User
    Join Date
    01-24-2013
    Location
    Manchester
    MS-Off Ver
    Excel 2007
    Posts
    24

    Re: Browse window: Importing data onto a new line in another spreadsheet

    Hi Jaslake,

    I'm enjoying implementing your handy button. However I'm having some difficulty adapting it for another sheet.

    I have attached my spreadsheet. It works perfectly on the 'Operational' sheet, but I now need the button on the 'Final' sheetto bring the same data onto that sheet - I'm sure this is a super-quick thing for you, I've been trying it for hours and just can't find a way to duplicate and amend the code.

    Can you help me?

    Thanks,
    Jenny

    Final Quote Model Analysis (Autosaved).xlsm

  10. #10
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Browse window: Importing data onto a new line in another spreadsheet

    Hi Jenny

    Try the Code in the attached...it works off the Active Sheet (the Sheet from which the Button is clicked),
    Attached Files Attached Files

  11. #11
    Registered User
    Join Date
    01-24-2013
    Location
    Manchester
    MS-Off Ver
    Excel 2007
    Posts
    24

    Re: Browse window: Importing data onto a new line in another spreadsheet

    Hi Jaslake,

    Thank you so much for your promt reply! I am finding it comes up with a Runtime error '76' Path not found when I hit the Browse Button. And the debugger is highlighting the 'ChDir MyDir' line. I'm sorry I can't remember what to do what that bit. In the previous code I might have taken it out as it isn't present. When I take it out of this version it just opens the file rather than gathering the info stored in it?

    I do not need to direct the user to a set file location, so just 'My Computer' would be fine.

    Apologies, for bothering you!

  12. #12
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Browse window: Importing data onto a new line in another spreadsheet

    Hi Jenny

    What happens if you comment out these lines
    Please Login or Register  to view this content.

  13. #13
    Registered User
    Join Date
    01-24-2013
    Location
    Manchester
    MS-Off Ver
    Excel 2007
    Posts
    24

    Re: Browse window: Importing data onto a new line in another spreadsheet

    That worked perfectly! In my wildest dream I wish I could understand why that made a difference, but as my brain's already about to pop I may leave that for another day! Thanks, I'll mark this as Solved again ;o)

  14. #14
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Browse window: Importing data onto a new line in another spreadsheet

    Hi Jenny

    It made a difference probably because the File you are looking for is no longer in C:\Finance (which is where the Code was saying to look).

  15. #15
    Registered User
    Join Date
    01-24-2013
    Location
    Manchester
    MS-Off Ver
    Excel 2007
    Posts
    24

    Re: Browse window: Importing data onto a new line in another spreadsheet

    Hi Jaslake,

    The code you gave me has been working perfectly, however I recently made a change to add in an extra column (I added it to the last line), and now the code seems to be going to seek the information, but not bringing anything back.

    Have I done something wrong?

    I've attached the sheet with the code - 'Final Project Analysis' (see Operational and Final tabs for the button. The action should then import the data on the Summary tab of the 'Cost Tracker' file, but it isn't doing.

    Sorry to be a pain...
    Jenny
    Attached Files Attached Files

+ 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