+ Reply to Thread
Results 1 to 4 of 4

Open another excel file and copy data to sheet 2 while button upload is in sheeet 1

  1. #1
    Registered User
    Join Date
    03-04-2014
    Location
    manila, philippines
    MS-Off Ver
    Excel 2010
    Posts
    22

    Open another excel file and copy data to sheet 2 while button upload is in sheeet 1

    Hi all,

    Can i ask if you can help me how to copy data from one workbook to another workbook.

    here's the process

    1. Button upload is in book1 sheet 1
    2. Copy data from book to book 1 sheet 2

    Here's my code for starters.

    Please Login or Register  to view this content.

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: Open another excel file and copy data to sheet 2 while button upload is in sheeet 1

    Hello rflorentino,

    This copies cells "A1:Z100" from "Sheet1" of the workbook the macro is in to "Sheet2" of the selected workbook.
    Please Login or Register  to view this content.
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  3. #3
    Registered User
    Join Date
    03-04-2014
    Location
    manila, philippines
    MS-Off Ver
    Excel 2010
    Posts
    22

    Re: Open another excel file and copy data to sheet 2 while button upload is in sheeet 1

    Quote Originally Posted by rflorentino View Post
    Hi all,

    Can i ask if you can help me how to copy data from one workbook to another workbook.

    here's the process

    1. Button upload is in book1 sheet 1
    2. Copy data from book to book 1 sheet 2

    Here's my code for starters.

    Please Login or Register  to view this content.


    Got to rephrase the question.

    How can I copy by column.

    1. In workbook1 sheet 2 there are 4 columns with fix headers namely name, age, height and weight
    2. In workbook2 there are 10 columns namely (feet size, name, height, bday, mothersname, fathersname, weight, age, gnder and notes)
    3. I want search the workbook2 for name, age, height and weight column only
    4. copy those columns in order and paste it in workbook 1

  4. #4
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: Open another excel file and copy data to sheet 2 while button upload is in sheeet 1

    Hello rflorentino,

    Can you post the workbook for testing ?

    How To Post Your Workbook
    1. At the bottom right of the Reply window, Click the button Go Advanced
    2. At the top of the Your Message Window, in the first row of icons, Click the Paperclip icon.
    3. Click the Add Files button at the top right in the dialog box. This displays the File Manager dialog.
    4. Click the Select Files button at the bottom middle of the dialog.
    5. In the new window Find the file you want to upload, select it, and Click Open.
    6. You will now be back in the File Manager dialog. Click the bottom Middle button Upload File.
    7. Wait until the file has completely uploaded before you exit the File Manager dialog.

+ 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. copy maths equation from one sheeet to other sheet
    By newmake in forum Hello..Introduce yourself
    Replies: 1
    Last Post: 01-28-2014, 09:46 AM
  2. Problem with copy data from "sales" sheet to each customer sheeet
    By jimparker65 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-14-2013, 04:46 AM
  3. [SOLVED] open variably named file, copy/paste data into consolidation file, open next file in list
    By sllawrence1968 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-29-2012, 09:49 PM
  4. command button- open folder and copy data from .csv file
    By karo in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-01-2012, 08:17 AM
  5. upload data from an excel worksheet to SQL W/ a command Button
    By cdneely in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-15-2005, 12:20 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