+ Reply to Thread
Results 1 to 6 of 6

Copy pasting problem

  1. #1
    Forum Contributor timtim89's Avatar
    Join Date
    01-05-2012
    Location
    Copenhagen, Denmark
    MS-Off Ver
    Excel 2010
    Posts
    141

    Copy pasting problem

    Hey folks

    Cant get copying between two non-active sheets to work. The sheets are "Materialer" and the last sheet in the workbook.
    Among lots of attempts I have for instance following two of which neither works:

    Please Login or Register  to view this content.
    Please Login or Register  to view this content.
    I have
    Please Login or Register  to view this content.
    The attachment probably says more.

    Thanks a lot!
    Attached Files Attached Files

  2. #2
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Copy pasting problem

    Can you quickly summarize what you are trying to accomplish? Which data should be copied and where? Based on what condition?
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  3. #3
    Forum Contributor timtim89's Avatar
    Join Date
    01-05-2012
    Location
    Copenhagen, Denmark
    MS-Off Ver
    Excel 2010
    Posts
    141

    Re: Copy pasting problem

    Thanks for the reply.

    The idea is that if what I type into the combobox has a matching sheet, then that sheet is activated. If there is no matching sheet, a sheet with the combobox name is created, and into this sheet I then want Range("a1", Cells(LastRow,3)) from sheet "Materialer" copied.

  4. #4
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Copy pasting problem

    Hi timtim89
    Add the Dot before Cells (as in .Cells)
    Please Login or Register  to view this content.
    John

    If you have issues with Code I've provided, I appreciate your feedback.

    In the event Code provided resolves your issue, please mark your Thread as SOLVED.

    If you're satisfied by any members response to your issue please use the star icon at the lower left of their post.

  5. #5
    Forum Contributor timtim89's Avatar
    Join Date
    01-05-2012
    Location
    Copenhagen, Denmark
    MS-Off Ver
    Excel 2010
    Posts
    141

    Re: Copy pasting problem

    Aha i see! Thanks a lot!

  6. #6
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Copy pasting problem

    Your welcome.

+ 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