+ Reply to Thread
Results 1 to 10 of 10

VBA to copy data from 1 worksheet to another

  1. #1
    Forum Contributor
    Join Date
    04-20-2012
    Location
    Singapore
    MS-Off Ver
    Excel 2010
    Posts
    135

    VBA to copy data from 1 worksheet to another

    Hi

    May I request for help (vba codes) to copy data from 1 worksheet to another:
    Source: sheet1
    Range: A1:IJ1000
    Detination: sheet9

    I tried the following (add "Module 1") but the code cannot work:

    Please Login or Register  to view this content.
    Thank you for your attention and assistance.

    Regards
    Nancy
    Last edited by nancyching1711; 01-12-2018 at 06:13 AM.

  2. #2
    Forum Guru Sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2019 | 2021
    Posts
    14,957

    Re: VBA to copy data from 1 worksheet to another

    Hi Nancy

    In future please view the forum rules before posting. Your post does not comply with rule #3.
    3. Use code tags around code. Posting code without them makes your code hard to read and difficult to be copied for testing.
    So, do the following:
    Edit your post, highlight your code and click the [#] button at the top of the post window.
    Last edited by Sintek; 01-12-2018 at 06:07 AM.
    Good Luck...
    I don't presume to know what I am doing, however, just like you, I too started somewhere...
    One-day, One-problem at a time!!!
    If you feel I have helped, please click on the [★ Add Reputation] to left of post window...
    Also....Add a comment if you like!!!!
    And remember...Mark Thread as Solved...
    Excel Forum Rocks!!!

  3. #3
    Forum Contributor
    Join Date
    04-20-2012
    Location
    Singapore
    MS-Off Ver
    Excel 2010
    Posts
    135

    Re: VBA to copy data from 1 worksheet to another

    Hi

    Noted and edited.

    My apology.

    Thank you.

    Regards
    Nancy

  4. #4
    Forum Guru Sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2019 | 2021
    Posts
    14,957

    Re: VBA to copy data from 1 worksheet to another

    Nancy, why do you say your code does not work...It tests fine

  5. #5
    Forum Contributor
    Join Date
    04-20-2012
    Location
    Singapore
    MS-Off Ver
    Excel 2010
    Posts
    135
    Quote Originally Posted by sintek View Post
    Nancy, why do you say your code does not work...It tests fine
    Hi. It show error at "Set rngSource = Worksheets("Sheet1").Range("A1:IJ100")", when I run the module. I am puzzled too.

    Is there another method of copying?

    Thank you for the assistance.

    Regards
    Nancy

  6. #6
    Forum Guru Sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2019 | 2021
    Posts
    14,957

    Re: VBA to copy data from 1 worksheet to another

    Please Login or Register  to view this content.
    The red part is not in your code post #1

  7. #7
    Forum Contributor
    Join Date
    04-20-2012
    Location
    Singapore
    MS-Off Ver
    Excel 2010
    Posts
    135

    Re: VBA to copy data from 1 worksheet to another

    Hi

    I tried but there is an error message which shown "Run-time error 9: Subscript out of range".

    This section of the code is highlighted in yellow when I run it:

    Please Login or Register  to view this content.
    Thank you for the assistance to resolve this error.

    Regards
    Nancy

  8. #8
    Forum Guru Sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2019 | 2021
    Posts
    14,957

    Re: VBA to copy data from 1 worksheet to another

    Time to upload sample of file...One of your sheets are not being recognized/
    some object you tried to access by name cannot be found

  9. #9
    Forum Contributor
    Join Date
    04-20-2012
    Location
    Singapore
    MS-Off Ver
    Excel 2010
    Posts
    135

    Re: VBA to copy data from 1 worksheet to another

    Sorry for the late reply as I was away. Thank you for the tips. I used excel formula to solved it. Thank you again.

  10. #10
    Forum Guru Sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2019 | 2021
    Posts
    14,957

    Re: VBA to copy data from 1 worksheet to another

    Glad you got it sorted. Please post your solution so others too, can learn.
    Tx for rep +

+ 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: 13
    Last Post: 10-05-2015, 08:59 AM
  2. Macro to copy data from multiple worksheet cells in to a single Master worksheet
    By thunt13 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-08-2015, 03:24 PM
  3. [SOLVED] Copy data from a worksheet and paste to worksheet with a similar worksheet name
    By maacmaac in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-21-2012, 04:02 AM
  4. Copy data from a worksheet and paste to worksheet with a similar worksheet name
    By maacmaac in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-21-2012, 02:49 AM
  5. Replies: 1
    Last Post: 08-29-2012, 07:11 PM
  6. Replies: 8
    Last Post: 04-20-2011, 09:45 AM
  7. Replies: 4
    Last Post: 02-25-2009, 03:16 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