+ Reply to Thread
Results 1 to 8 of 8

macro to copy data from 3 worksheets in one worksheet

  1. #1
    Forum Contributor iscar_marius's Avatar
    Join Date
    12-19-2008
    Location
    germany
    MS-Off Ver
    2000 and 2003
    Posts
    221

    macro to copy data from 3 worksheets in one worksheet

    I need a macro to copy data from "sheet1" "sheet2" "sheet3" / column E and F
    to the worksheet "final".
    The number of rows in "sheet1", "sheet2", "sheet3" etc. is variable.

    Please open attached file!

    Thanks for your help!
    Attached Files Attached Files
    Last edited by iscar_marius; 02-06-2009 at 01:37 PM.

  2. #2
    Forum Guru
    Join Date
    08-26-2007
    Location
    London
    Posts
    4,606

    Re: macro to copy data from 3 worksheets in one worksheet

    You could do it like this:
    Please Login or Register  to view this content.

  3. #3
    Forum Contributor iscar_marius's Avatar
    Join Date
    12-19-2008
    Location
    germany
    MS-Off Ver
    2000 and 2003
    Posts
    221

    Re: macro to copy data from 3 worksheets in one worksheet

    this is exactly what I need
    Thanks!

  4. #4
    Forum Contributor iscar_marius's Avatar
    Join Date
    12-19-2008
    Location
    germany
    MS-Off Ver
    2000 and 2003
    Posts
    221

    Re: macro to copy data from 3 worksheets in one worksheet

    Quote Originally Posted by StephenR View Post
    You could do it like this:
    Please Login or Register  to view this content.
    I am a beginer to VBA and I don't really understand the code
    This code it's working very well but I don't understand how it's working.
    If I need to copy data from column F and G how can I modify the code to work. Now the code copies data from column E and F.

    Thanks!

  5. #5
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988

    Re: macro to copy data from 3 worksheets in one worksheet

    This locks in the starting cell. Change to F
    Please Login or Register  to view this content.
    and this part shows it ending in Col F, Change to G

    Please Login or Register  to view this content.
    and finally this parts find the last cell in Col F

    Please Login or Register  to view this content.
    So if the last cell in Col F is F100 the full code would copy the range E2:F100

    HTH

    VBA Noob
    Last edited by VBA Noob; 02-09-2009 at 09:16 AM.
    _________________________________________


    Credo Elvem ipsum etian vivere
    _________________________________________
    A message for cross posters

    Please remember to wrap code.

    Forum Rules

    Please add to your signature if you found this link helpful. Excel links !!!

  6. #6
    Forum Contributor iscar_marius's Avatar
    Join Date
    12-19-2008
    Location
    germany
    MS-Off Ver
    2000 and 2003
    Posts
    221

    Re: macro to copy data from 3 worksheets in one worksheet

    Thank you!

  7. #7
    Registered User
    Join Date
    10-31-2012
    Location
    Perth
    MS-Off Ver
    Excel 2007
    Posts
    10

    Re: macro to copy data from 3 worksheets in one worksheet

    This is almost what I am looking for, all I need to change is have the row count on the first column and for what ever reason I cant get the starting row to work. I want it to start in A3 and finish in CB (column A will always have cells filled where CB may have empty cells).

  8. #8
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,612

    Re: macro to copy data from 3 worksheets in one worksheet

    stevenoob,
    Please do not resurrect old threads. Further, do not post your question in the thread someone else has started - this is known as thread hijacking and is against the Forum Rules.
    Always start your own thread and, if it helps to clarify your needs, provide a link back to other threads.

    I suggest you take the time to read the Forum Rules so that you can avoid infractions that will impact your posting privileges.
    Ben Van Johnson

+ 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