+ Reply to Thread
Results 1 to 5 of 5

Problem copying a 2D range from one sheet to another

  1. #1
    Valued Forum Contributor
    Join Date
    02-21-2010
    Location
    Tokyo, Japan
    MS-Off Ver
    Excel 2007
    Posts
    502

    Problem copying a 2D range from one sheet to another

    Assume the following.
    There is a 2D range of numbers from A1 to LastRow and LastColumn in sheet1.

    LastRow and LastColumn are determined as follows:
    Please Login or Register  to view this content.
    How does the code looks like that copies this range to sheet2?
    Last edited by dschmitt; 07-08-2010 at 08:30 PM.

  2. #2
    Forum Expert pike's Avatar
    Join Date
    12-11-2005
    Location
    Alstonville, Australia
    MS-Off Ver
    2016
    Posts
    5,342

    Re: Problem copying a 2D range from one sheet to another

    Hi dschmitt

    one way with the code you have is

    Please Login or Register  to view this content.
    If the solution helped please donate to RSPCA

    Site worth visiting: Rabbitohs

  3. #3
    Valued Forum Contributor
    Join Date
    02-21-2010
    Location
    Tokyo, Japan
    MS-Off Ver
    Excel 2007
    Posts
    502

    Re: Problem copying a 2D range from one sheet to another

    thanks pike. One more question.
    Some columns contain functions.
    How do I need to modify your code if I only want to copy the values?

  4. #4
    Forum Expert pike's Avatar
    Join Date
    12-11-2005
    Location
    Alstonville, Australia
    MS-Off Ver
    2016
    Posts
    5,342

    Re: Problem copying a 2D range from one sheet to another

    Hi dschmitt
    Try this....
    Please Login or Register  to view this content.

  5. #5
    Valued Forum Contributor
    Join Date
    02-21-2010
    Location
    Tokyo, Japan
    MS-Off Ver
    Excel 2007
    Posts
    502

    Re: Problem copying a 2D range from one sheet to another

    thanks pike. I got it to work and learned 2 new ways of programming (destination, .Range)

+ 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