+ Reply to Thread
Results 1 to 5 of 5

Simple VBA to import data from another excel file

  1. #1
    Registered User
    Join Date
    07-26-2012
    Location
    The Netherlands
    MS-Off Ver
    Excel 2003
    Posts
    21

    Simple VBA to import data from another excel file

    Hi,

    Does anyone by any chance know of a VBA (or maybe help me start out to build one) that can do the following:

    I click on a button and then a selection from one sheet from another excel document is pasted in the current document.

    However these are the conditions:
    -The user should be able to specify which document should be copied from. So a pop up appears in which the user selects the document to copy from.
    -I want to preset the specified sheetname and range that should be copied from and also preset where to copy it to.

    For example user selects data.xls and then all information contained in cells from sheet1 A1:Z100 of that document will be copied into sheet2 A1:Z100 of the current document.

    I would be very grateful, thanks in advance!

    Suzan

  2. #2
    Forum Expert tigeravatar's Avatar
    Join Date
    03-25-2011
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2003 - 2013
    Posts
    5,361

    Re: Simple VBA to import data from another excel file

    Suzan,

    Something like this?
    Please Login or Register  to view this content.
    Hope that helps,
    ~tigeravatar

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Registered User
    Join Date
    07-26-2012
    Location
    The Netherlands
    MS-Off Ver
    Excel 2003
    Posts
    21

    Re: Simple VBA to import data from another excel file

    Wow!!! Unbelievably amazing!! You just made my day thanks a million!!!!

  4. #4
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: Simple VBA to import data from another excel file

    @ ShareTheGlobe

    Based on your last post it seems that you are satisfied with the solution(s) you've received but you haven't marked your thread as SOLVED. I'll do that for you now but please keep in mind for your future threads that Rule #9 requires you to do that yourself. If your problem has not been solved you can use Thread Tools (located above your first post) and choose "Mark this thread as unsolved".
    Thanks.



    Also, as a new member of the forum, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.

  5. #5
    Registered User
    Join Date
    07-26-2012
    Location
    The Netherlands
    MS-Off Ver
    Excel 2003
    Posts
    21

    Re: Simple VBA to import data from another excel file

    Hi Cutter,

    Thanks for your advice, I will read the forum rules before posting any other threads for sure!

+ 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