+ Reply to Thread
Results 1 to 4 of 4

Copy, paste, then move to a new sheet.

  1. #1
    Forum Contributor
    Join Date
    11-11-2007
    Posts
    263

    Copy, paste, then move to a new sheet.

    I've been working on this code for a little while with some help, and I have come up to the conclusion that I don't know squat.

    This is the entire code.

    Please Login or Register  to view this content.


    Attached is the file in which it will be used on, I thought the code was straight forward, but I am getting an error on this line.

    Please Login or Register  to view this content.
    It tells me Run-time error '438':

    Object doesn't support this property or method. It highlights worksheets.

    I hate to ask, but since when, and why? I thought this would work, but it seems not, if someone can help it be appreciated.
    Attached Files Attached Files

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Copy, paste, then move to a new sheet.

    1) Remove the word Source from that line of code. It's undefined in your macro, it has no meaning. You have that inside a WITH, so I would expect that line of code to just start with a period.
    2) Your paste command won't work either unless you paste into column A or restrict the copy range better.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Forum Contributor
    Join Date
    11-11-2007
    Posts
    263

    Re: Copy, paste, then move to a new sheet.

    Quote Originally Posted by JBeaucaire View Post
    2) Your paste command won't work either unless you paste into column A or restrict the copy range better.
    Ok, how would I do that? I thought the idea of copying a row to row was to copy the entire row, and not just a selection?

    Also, I deleted the source, and started it with a period, it still has the same error.

    Please Login or Register  to view this content.
    Last edited by Cyberpawz; 04-24-2012 at 11:00 AM.

  4. #4
    Forum Contributor
    Join Date
    11-11-2007
    Posts
    263

    Re: Copy, paste, then move to a new sheet.

    Ok, after some looking on the net, and asking someone I know to verify I got it working.

    Please Login or Register  to view this content.

+ 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