+ Reply to Thread
Results 1 to 4 of 4

Exporting Multiple Ranges In A Way That Allows for Re-Import

  1. #1
    Registered User
    Join Date
    02-04-2014
    Location
    Ohio
    MS-Off Ver
    Excel 2010
    Posts
    4

    Exporting Multiple Ranges In A Way That Allows for Re-Import

    I want my users to be able to click on an Export User Data button that would then take ranges from two sheets and export them into a new file (which they could choose the name/location of) and then allow for them to import that data back in at any time.

    My initial idea is to have a VBA code copy/paste those ranges from the two sheets onto a new sheet and then save that sheet in a new separate workbook. Then, when they import, have it create a new sheet with that data and run a macro to copy/paste it back to the ranges from the two sheets. However, I'm not sure how to really go about doing this in VBA and/or if there is a better method for such an idea.

    I've researched this for the past week or so but cannot seem to find an adequate solution so any help would be greatly appreciated!

  2. #2
    Forum Expert
    Join Date
    07-15-2012
    Location
    Leghorn, Italy
    MS-Off Ver
    Excel 2010
    Posts
    3,431

    Re: Exporting Multiple Ranges In A Way That Allows for Re-Import

    Please Login or Register  to view this content.
    If solved remember to mark Thread as solved

  3. #3
    Registered User
    Join Date
    02-04-2014
    Location
    Ohio
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Exporting Multiple Ranges In A Way That Allows for Re-Import

    Thanks! The restore() one doesn't seem to be working for me (it runs but the data stays the same in the initial sheet). Also, is there a way to have it prompt the user to choose their own save location for saveranges() and then have the user browse for a file to "restore" in restore()?

  4. #4
    Registered User
    Join Date
    02-04-2014
    Location
    Ohio
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Exporting Multiple Ranges In A Way That Allows for Re-Import

    For those curious, here are some tweaks I ended up making to achieve the idea that I wanted:

    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. [SOLVED] Listbox import other worksheet multiple ranges
    By feroguz in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-17-2013, 08:29 PM
  2. Import Multiple Ranges From Closed Workbook
    By jasono in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-04-2011, 01:19 AM
  3. [SOLVED] Exporting specific cells then import to access
    By Lordzion in forum Excel General
    Replies: 1
    Last Post: 05-11-2006, 08:25 PM
  4. [SOLVED] Import format and then exporting
    By Rick in forum Excel General
    Replies: 2
    Last Post: 03-08-2005, 05:06 PM
  5. [SOLVED] Exporting/Import Custom Lists
    By BuddyB in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-27-2005, 04: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