+ Reply to Thread
Results 1 to 3 of 3

Copy rows and maintain Column width for each column

  1. #1
    Forum Contributor Rick_Stanich's Avatar
    Join Date
    11-21-2005
    Location
    Ladson SC
    MS-Off Ver
    Office365
    Posts
    1,141

    Copy rows and maintain Column width for each column

    I am copying several rows on a worksheet, each column has a width value set. When I do a simple copy and past (even selecting Past formats) the column widths are lost.

    How do I copy these rows and maintain column widths on my new worksheet?
    Regards

    Rick
    Win10, Office 365

  2. #2
    Forum Contributor
    Join Date
    02-09-2014
    Location
    Kamnik, Slovenia
    MS-Off Ver
    Excel 2010
    Posts
    693

    Re: Copy rows and maintain Column width for each column

    Hi,

    I'm helping myself for simmilar problems (changing row widths) with VBA. I think best option would be to use this code :

    Please Login or Register  to view this content.
    You could put Cmdbutton on your sheets and run this code each time you copy rows. That will work If you copy them in same columns as previous sheet. You could also preform this code for all sheets at once, something like :

    Please Login or Register  to view this content.
    hope this helps !

  3. #3
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,647

    Re: Copy rows and maintain Column width for each column

    One way to do this is after pasting the copied rows, right click again --> Paste Special --> Column Width --> OK.
    Regards
    sktneer


    Treat people the way you want to be treated. Talk to people the way you want to be talked to.
    Respect is earned NOT given.

+ 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. export filtered data (including header row) to new workbook, maintain column width
    By ovetcobo in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-26-2013, 03:47 PM
  2. Replies: 8
    Last Post: 08-15-2012, 02:42 AM
  3. how to copy column width ?
    By przemke in forum Excel General
    Replies: 2
    Last Post: 04-22-2010, 02:52 AM
  4. Printed Copy Changes Column Width?
    By 2709236 in forum Excel General
    Replies: 2
    Last Post: 04-01-2010, 01:38 PM
  5. [SOLVED] copy paste (column width prb)
    By Murat D. Hekimoðlu in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-12-2005, 11:06 AM

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