+ Reply to Thread
Results 1 to 7 of 7

how to copy a portion of a sheet?

  1. #1
    Forum Contributor
    Join Date
    02-28-2012
    Location
    india
    MS-Off Ver
    Excel 2019
    Posts
    545

    how to copy a portion of a sheet?

    I want to copy a portion of a sheet to another part of the same sheet. pls see the attached file. I want to copy and paste from A1:G11. When I select A1:G11 and paste the format is lost,the row height is lost and the shape is lost. When i select row A1:A11 and paste I do get all . But this is not accetable since there may be some data after the G column and I don't want to copy these cols. kindly help
    Attached Files Attached Files

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: how to copy a portion of a sheet?

    If you select the range down 1 row further (to row 12), then copy, it pulls in the shapes, but still does not set the row heights
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Forum Expert Alf's Avatar
    Join Date
    03-13-2004
    Location
    Gothenburg/Mullsjoe, Sweden
    MS-Off Ver
    Excel 2019 and not sure I like it
    Posts
    4,784

    Re: how to copy a portion of a sheet?

    Just to see if I could solve this problem I've written a macro that do copy everything, row height and arrows. To test run macro "CopyRow"

    The good: It works

    The bad: As the copy to is specified to range A14 the usfullness of this macro is rather limited.

    Alf
    Attached Files Attached Files

  4. #4
    Forum Expert Alf's Avatar
    Join Date
    03-13-2004
    Location
    Gothenburg/Mullsjoe, Sweden
    MS-Off Ver
    Excel 2019 and not sure I like it
    Posts
    4,784

    Re: how to copy a portion of a sheet?

    Made some modefication to the code and you can now run it a number of times. Each time the macro is run it will copy the range "A1:G11" to an A range two rows below the last row in the A range and then adjust the row hight to correspond with the one found in range A1 to A11.

    I.e. first run place table in range "A14:G24", next time macro is run it places table in range "A26:G37" and so forth.

    Please Login or Register  to view this content.
    Alf

  5. #5
    Forum Contributor
    Join Date
    02-28-2012
    Location
    india
    MS-Off Ver
    Excel 2019
    Posts
    545

    Re: how to copy a portion of a sheet?

    thanks for the response. but I don't want to use the macro. somethingelse pls to solve the issue. (the range to copy is not permanent.)


    Quote Originally Posted by Alf View Post
    Made some modefication to the code and you can now run it a number of times. Each time the macro is run it will copy the range "A1:G11" to an A range two rows below the last row in the A range and then adjust the row hight to correspond with the one found in range A1 to A11.

    I.e. first run place table in range "A14:G24", next time macro is run it places table in range "A26:G37" and so forth.

    Please Login or Register  to view this content.
    Alf

  6. #6
    Forum Expert Alf's Avatar
    Join Date
    03-13-2004
    Location
    Gothenburg/Mullsjoe, Sweden
    MS-Off Ver
    Excel 2019 and not sure I like it
    Posts
    4,784

    Re: how to copy a portion of a sheet?

    Well if you copy range "A1:G11" and selct say cell A14 and just use the "Paste" command you get immages and everything else except for row hight, to fix this you select the rows in the pasted range and go to home tab -> Cell -> Formate and manually set the propper row hight.

    Or you can set the particular row hight as a default value for all sheets, or a specified number of rows on a sheet then you don't need to adjust row height after pasting.

    Alf

  7. #7
    Forum Contributor
    Join Date
    02-28-2012
    Location
    india
    MS-Off Ver
    Excel 2019
    Posts
    545

    Re: how to copy a portion of a sheet?

    thanks for the response.but nothing new in this suggestion. pls see my initial post.
    Quote Originally Posted by Alf View Post
    Well if you copy range "A1:G11" and selct say cell A14 and just use the "Paste" command you get immages and everything else except for row hight, to fix this you select the rows in the pasted range and go to home tab -> Cell -> Formate and manually set the propper row hight.

    Or you can set the particular row hight as a default value for all sheets, or a specified number of rows on a sheet then you don't need to adjust row height after pasting.

    Alf

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Copy and paste the template to the next portion of the screen, VBA
    By Lifeseeker in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-13-2012, 12:26 PM
  2. cut a portion of a cell's contents and paste the cut portion into the net column
    By NJEvan in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 10-12-2010, 05:08 AM
  3. Copy portion of filtered list
    By tcowen61 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-07-2009, 01:31 PM
  4. Replies: 2
    Last Post: 12-06-2008, 02:41 AM
  5. Buttons in lower portion of workbook appear in upper portion
    By ToferKing in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-22-2006, 01:50 PM
  6. how do i copy only a portion of a spreadsheet
    By tazsdad in forum Excel General
    Replies: 3
    Last Post: 12-05-2005, 07:20 PM
  7. [SOLVED] copy only a portion of a spreadsheet
    By tazsdad in forum Excel General
    Replies: 0
    Last Post: 12-05-2005, 06:15 PM

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