+ Reply to Thread
Results 1 to 5 of 5

Copying an unknown number of cells in Sheet1 to Sheet2 starting from "F2"

  1. #1
    Registered User
    Join Date
    05-31-2007
    Posts
    44

    Copying an unknown number of cells in Sheet1 to Sheet2 starting from "F2"

    Hi. Could anyone please kindly help.

    Row 1 in my worksheet contains the headers and data starts from Row 2.

    In every column starting from Column C of Sheet1, I have a time series. The number of columns is unknown (depends on the kind of data).

    I want to copy everything starting from cell C2 to "cell(last row, last column)", and paste this selection into Sheet2, starting from Cell F2.

    Thanks in advance for your help. Cheers!

  2. #2
    Forum Expert
    Join Date
    11-23-2005
    Location
    Rome
    MS-Off Ver
    Ms Office 2016
    Posts
    1,628
    You can try with this macro:
    Please Login or Register  to view this content.
    I hope it's what you need.

    Regards,
    Antonio

  3. #3
    Registered User
    Join Date
    05-31-2007
    Posts
    44
    Brilliant! Thank you. It works perfectly!

  4. #4
    Registered User
    Join Date
    05-31-2007
    Posts
    44

    This works perfectly but ...

    What if, rather than just pasting, I want to "paste special -- values"?

    The source worksheet that I copied from has formulae but I only want the values to be copied to the destination worksheet.

    Thank you.

  5. #5
    Forum Expert
    Join Date
    01-03-2006
    Location
    Waikato, New Zealand
    MS-Off Ver
    2010 @ work & 2007 @ home
    Posts
    2,243
    hi,

    the best way to identify a starting code would be to create a macro using the macro recorder & reviewing the code. I've been lazy though & have just grabbed Antonio's suggestion because he hasn't yet been able to respond - try changing it to read...

    Quote Originally Posted by antoka05
    You can try with this macro:
    Please Login or Register  to view this content.
    I hope it's what you need.
    Regards,
    Antonio
    hth
    Rob
    Rob Brockett
    Kiwi in the UK
    Always learning & the best way to learn is to experience...

+ 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