+ Reply to Thread
Results 1 to 4 of 4

Importing data from old workbook into updated version of same workbook

  1. #1
    Registered User
    Join Date
    03-14-2014
    Location
    Mordor
    MS-Off Ver
    Excel 365
    Posts
    78

    Importing data from old workbook into updated version of same workbook

    I have a massive character generator that gets updated frequently, and users have to start over each time I send out an update. Users make a lot of choices from data validation lists, but there are also tons of metadata that does not need to be imported. Is there a macro that will take just those unique choices that are made (these are spread all over the place, over multiple worksheets...they aren't simply residing in a nice, neat table) and import them into the newly-updated workbook? Will I have to specify each cell (and worksheet?) that I want to import?

    Thanks in advance,
    Jon

  2. #2
    Forum Expert
    Join Date
    10-09-2012
    Location
    Dallas, Texas
    MS-Off Ver
    MO 2010 & 2013
    Posts
    3,049

    Re: Importing data from old workbook into updated version of same workbook

    Yeah you can do this, and yes you will have to logically define what moves and where.
    Please ensure you mark your thread as Solved once it is. Click here to see how.
    If a post helps, please don't forget to add to our reputation by clicking the star icon in the bottom left-hand corner of a post.

  3. #3
    Registered User
    Join Date
    03-14-2014
    Location
    Mordor
    MS-Off Ver
    Excel 365
    Posts
    78

    Re: Importing data from old workbook into updated version of same workbook

    Thanks! Bonus points if you can provide either code or a link to a good example, as I am terribly inept at VBA. Parameters:
    Filenames, the same: Generator (I assume the paths need to be spelled out, or if you could browse to find the file, that would be preferable in case user changed the file name or older file)
    A few example Cells to be copied (which go to same cell in new file): Race(a named cell in worksheet 'Character Setup'), 'Character Setup'!O7:O12, 'Character Setup'!J5, 'Level Up'!P9. I have countless more, but I should be able to extrapolate with these few examples.

    Peace.

  4. #4
    Registered User
    Join Date
    03-14-2014
    Location
    Mordor
    MS-Off Ver
    Excel 365
    Posts
    78

    Re: Importing data from old workbook into updated version of same workbook

    I found some code online that I modified below. It works great…but I have some questions due to my atrocious VBA skills:

    1. Do I need everything in the ‘Last cell in column section? I have no idea what that does. I’m just updating an old spreadsheet with a newer version, and I’m simply importing the old info into the new spreadsheet.
    2. Is there any way to make this more efficient, perhaps by selecting multiple ranges and doing the copy in a single command? I need to add probably 20 times the amount of range copies that you see below, and I’m concerned about performance.
    3. I have several other worksheets to copy from/to as well. Am I better off creating separate macros for each worksheet, or should it work fine inside of a single macro?

    Thanks so much for your help!

    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)

Similar Threads

  1. Replies: 2
    Last Post: 11-28-2013, 09:00 AM
  2. Importing and Exporting data from workbook to workbook in excel
    By dans123 in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 01-09-2012, 03:40 AM
  3. Update second workbook data once another Workbook is Updated
    By Brandy in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 10-10-2008, 10:48 AM
  4. Importing updated data from one workbook to another
    By Garcia in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-23-2006, 10:48 PM
  5. [SOLVED] Importing Data from unopened Workbook into an open Workbook
    By GrayesGhost in forum Excel General
    Replies: 0
    Last Post: 03-05-2005, 08:06 PM

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