+ Reply to Thread
Results 1 to 3 of 3

copy and pasting issue

  1. #1
    Registered User
    Join Date
    09-02-2012
    Location
    auckland, New Zealand
    MS-Off Ver
    Excel 2010
    Posts
    8

    copy and pasting issue

    Hi there,

    OK here's the deal, I have two documents; 1 called payroll the other called rosters. I have used this forum to weed-out all but one bug in the code. this is at the point where the selected cells are pasted.

    It doesnt matter if i change both of the cells.select to a range("a1:az65536").select it still errors at the Selection.Paste when the code is run.

    If I take out the paste the code runs perfect. but i do need it to paste.

    Cheers in advance.
    Please Login or Register  to view this content.


    Link http://www.mrexcel.com/forum/excel-q...ml#post3337568 was put on another forum by a workmate as well.
    Last edited by kiwiingrid; 12-09-2012 at 02:37 PM.

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: copy and pasting issue

    I think I know what the problem is but in the future always include the error message. See the error highlighted by my green comment below. This will give you an "Object required" error.

    I also recommend you not do all that activating and selecting. The following modifications on blue lines will clean things up a bit. :
    Please Login or Register  to view this content.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: copy and pasting issue

    I'm afraid your post does not comply with Rule 8 of our Forum RULES. Cross-posting is when you post the same question in other forums on the web. You'll find people are disinclined to respond to cross-posts because they may be wasting their time solving a problem that has been solved elsewhere. We prefer that you not cross-post at all, but if you do (and it's unlikely to go unnoticed), you MUST provide a link (copy the url from the address bar in your browser)to the cross-post. Expect cross-posts without a link to be closed a message will be posted by the moderator explaining why. We are here to help so help us to help you!

    Read this to understand why we ask you to do this, and then please edit your first post to include links to any and all cross-posts in any other forums (not just this site).
    HTH
    Regards, Jeff

+ 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