+ Reply to Thread
Results 1 to 4 of 4

Copy range from user selected sheet of another file to original worksheet

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

    Copy range from user selected sheet of another file to original worksheet

    Hi,

    What I'm trying to do is open a new excel file, let the user select the sheet to copy from, and then have the macro copy a range or column into the original excel file.

    So Have Excel file #1 open. Launch Macro to select Excel file #2, user selects sheet, macro copies column/range to active Sheet of Excel File #1.

    I've patched together some code from other threads and came up with something like this:

    Please Login or Register  to view this content.
    It lets me open the file, and select the sheet, but it copies the contents of the wrong sheet. I'm not exactly a vba guru, so ive been trying to figure this out for a while now with no results. Any help is much appreciated.

    Thanks!

  2. #2
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 365
    Posts
    8,056

    Re: Copy range from user selected sheet of another file to original worksheet

    This may be a little overkill, but give it a try:
    Please Login or Register  to view this content.
    You can say "THANK YOU" for help received by clicking the Star symbol at the bottom left of the helper's post.
    Practice makes perfect. I'm very far from perfect so I'm still practising.

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

    Re: Copy range from user selected sheet of another file to original worksheet

    Wow nice! I like the fact that there's options to choose from when it comes to the sheets. Only problem I got with that is, sometimes I have 15+ sheets with similar names, and without actually going through them, it's can be difficult to tell which sheet is the right one to copy from. Either way much appreciated for the help! The code that ended up working for me is below:

    Please Login or Register  to view this content.

  4. #4
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 365
    Posts
    8,056

    Re: Copy range from user selected sheet of another file to original worksheet

    Glad to help.

+ 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] Copy/paste user-selected range to/from array
    By taylor_b in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-01-2014, 04:26 PM
  2. Copy cells to a worksheet that is user selected.
    By brent_milne in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-05-2013, 05:28 PM
  3. Replies: 6
    Last Post: 04-22-2013, 08:29 AM
  4. [SOLVED] Import worksheet from user selected file into open workbook
    By AWM1966 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 09-14-2012, 04:30 PM
  5. Referencing original sheet to copy/paste into new sheet without using file name
    By pgarakani in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-24-2012, 02:06 PM
  6. [SOLVED] Select file, Copy Worksheet Range and Append onto 1 Sheet
    By Tellm in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-03-2012, 03:27 PM
  7. User form in copy of original file
    By Jennifer in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-17-2005, 01: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