+ Reply to Thread
Results 1 to 4 of 4

copy contents of a sheet to another with the exact column width and row height

  1. #1
    Registered User
    Join Date
    11-15-2011
    Location
    Delhi, India
    MS-Off Ver
    Excel 2010
    Posts
    74

    copy contents of a sheet to another with the exact column width and row height

    hi all,
    i had written a vba code to copy contents of a sheet to the display sheet...
    it does that fine, formatting is same but column width and row height has been adjusted in the original which is all gone when it copies...
    that creates a whole lot of mess...and compels me to adjust height and width all over again...
    how could i correct this one?

    pike, hi...

    thanks in advance
    Last edited by prajesh; 12-25-2011 at 06:04 AM.

  2. #2
    Registered User
    Join Date
    11-15-2011
    Location
    Delhi, India
    MS-Off Ver
    Excel 2010
    Posts
    74

    Re: copy contents of a sheet to another with the exact column width and row height

    if anyone needs it, i go the answer...
    add the following line to the code :

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    11-15-2011
    Location
    Delhi, India
    MS-Off Ver
    Excel 2010
    Posts
    74

    Re: copy contents of a sheet to another with the exact column width and row height

    if anyone needs it, i got the answer...
    add the following line to the code :

    Please Login or Register  to view this content.

  4. #4
    Valued Forum Contributor WasWodge's Avatar
    Join Date
    08-02-2010
    Location
    Hampshire,England
    MS-Off Ver
    Office 365 and Office 2010
    Posts
    882

    Re: copy contents of a sheet to another with the exact column width and row height

    Prajesh, did the row height adjust for you as well as the column width?
    Only the column width worked for me using 2007 (I haven't tried it with 2010 yet). That is what I would expect as the column width is the only one in the paste special dialog box when I do it manually in 2007.
    If my solution worked (or not) please let me know. If your question is answered then please remember to mark it solved

    Computers are like air conditioners. They work fine until you start opening windows. ~Author Unknown

+ 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