+ Reply to Thread
Results 1 to 6 of 6

copy data from one sheet to another

  1. #1
    Registered User
    Join Date
    09-16-2020
    Location
    USA
    MS-Off Ver
    365
    Posts
    37

    copy data from one sheet to another

    Hi,

    I was able to copy the data from one sheet to another sheet in the same workbook. However, the destination sheet is not refreshed. For example
    copy data from sheet1 to sheet2
    Yesterday, I have 100 rows on sheet1, run the macro, I have 100 rows on sheet2 also.
    Today, I only have 20 rows on sheet 1, when I run the macro, it still shows 100 rows on sheet2 instead of 20 rows.
    Please tell me what should I do to refresh the destination every time the source is refreshed?
    Thannks

    Please Login or Register  to view this content.
    Last edited by hh2020; 10-05-2020 at 09:11 PM.

  2. #2
    Registered User
    Join Date
    08-01-2020
    Location
    Viet nam
    MS-Off Ver
    2007, 2010
    Posts
    17

    Re: copy data from one sheet to another

    @hh2020 you try

    Please Login or Register  to view this content.
    YOu can change sheetname for you suit

  3. #3
    Registered User
    Join Date
    09-16-2020
    Location
    USA
    MS-Off Ver
    365
    Posts
    37

    Re: copy data from one sheet to another

    Thank you for your prompt respond. How do I only copy the specify columns such as A, F, M and N to the destination sheet?

  4. #4
    Valued Forum Contributor
    Join Date
    06-29-2014
    Location
    Australia
    MS-Off Ver
    MSO 365
    Posts
    1,098

    Re: copy data from one sheet to another

    Hello HH2020,

    See if the following option works for you:-

    Please Login or Register  to view this content.
    I've attached a mock-up workbook with the code implemented for you to play with. Click on the "RUN" button to see how the code works.

    I hope that this helps.

    Cheerio,
    vcoolio.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    09-16-2020
    Location
    USA
    MS-Off Ver
    365
    Posts
    37

    Re: copy data from one sheet to another

    Thank you,

    Is this the complete code?, because I got an error. I can't download your file due to security from the company. Can you please copy the past the complete code so i can try it?

    Please Login or Register  to view this content.

  6. #6
    Valued Forum Contributor
    Join Date
    06-29-2014
    Location
    Australia
    MS-Off Ver
    MSO 365
    Posts
    1,098

    Re: copy data from one sheet to another

    Yes. Of course it's the complete code. What makes you think it's not?

    What error are you receiving?

    Read the gold banner at the top of this page which describes how to upload a sample of your workbook. We'll need to see it/test with it in order to be able to help you.

    Cheerio,
    vcoolio.

+ 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. Replies: 1
    Last Post: 02-09-2017, 05:36 AM
  2. Replies: 1
    Last Post: 02-09-2017, 05:30 AM
  3. Replies: 2
    Last Post: 01-23-2016, 01:16 PM
  4. Replies: 1
    Last Post: 06-05-2013, 07:03 AM
  5. Replies: 0
    Last Post: 05-21-2013, 03:09 PM
  6. Copy Data from a fixed form of data sheet into a master excel sheet.....
    By sirimhk in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-18-2012, 08:48 AM
  7. [SOLVED] Copy and paste data from sheet 2 to sheet 1 based on specific criteria on sheet 1
    By VBADUD in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-05-2012, 04:18 AM

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