+ Reply to Thread
Results 1 to 11 of 11

Copy paste in Range not working

  1. #1
    Registered User
    Join Date
    12-17-2011
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    81

    Copy paste in Range not working

    Hello Friends

    Below is the code, I am trying to copy value from wks1.range("S2:S200") but copying only 1 value, so can you guys help me on this.



    Please Login or Register  to view this content.

  2. #2
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Copy paste in Range not working

    Another way:

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    12-17-2011
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    81

    Re: Copy paste in Range not working

    Thank you so much AB33,

    Rep Added

  4. #4
    Registered User
    Join Date
    12-17-2011
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    81

    Re: Copy paste in Range not working

    Hi AB33

    What would be the shortcut code for below.

    Please Login or Register  to view this content.

  5. #5
    Forum Expert
    Join Date
    10-06-2008
    Location
    Canada
    MS-Off Ver
    2007 / 2013
    Posts
    5,522

    Re: Copy paste in Range not working

    Would this work?
    Please Login or Register  to view this content.

  6. #6
    Registered User
    Join Date
    12-17-2011
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    81

    Re: Copy paste in Range not working

    Not working
    error line
    Please Login or Register  to view this content.
    Run time error 1004
    Method 'Range' of object'_worksheet failed

  7. #7
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Copy paste in Range not working

    You are getting an error because you need to include the object variables-wks1 and wks from your code in to jolivanes' code
    You can not use jolivanes' as it is. His code assumes that you have variable wks1 and wks .

  8. #8
    Forum Expert
    Join Date
    10-06-2008
    Location
    Canada
    MS-Off Ver
    2007 / 2013
    Posts
    5,522

    Re: Copy paste in Range not working

    Thanks AB33.
    Yes, indeed. The OP did not show any of his code, with the exception of the one line, so I assumed he had all of this in the rest of his code.

  9. #9
    Registered User
    Join Date
    12-17-2011
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    81

    Re: Copy paste in Range not working

    Hi AB33 & jolivanes

    Please see below code
    Please Login or Register  to view this content.

  10. #10
    Forum Expert
    Join Date
    10-06-2008
    Location
    Canada
    MS-Off Ver
    2007 / 2013
    Posts
    5,522

    Re: Copy paste in Range not working

    Try this maybe
    Please Login or Register  to view this content.

  11. #11
    Registered User
    Join Date
    12-17-2011
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    81

    Re: Copy paste in Range not working

    Thanks jolivanes

    Rep Added

+ 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 paste - cute paste macro almost working
    By graiggoriz in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-27-2014, 12:33 PM
  2. Replies: 2
    Last Post: 08-17-2012, 08:16 AM
  3. Replies: 2
    Last Post: 03-27-2012, 02:49 PM
  4. copy/paste not working
    By jw01 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-20-2010, 01:55 AM
  5. copy paste is not working
    By Becky1810 in forum Excel General
    Replies: 1
    Last Post: 07-16-2005, 10:05 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