+ Reply to Thread
Results 1 to 1 of 1

autofit doesn't work when new sheet created?

  1. #1
    Registered User
    Join Date
    08-08-2010
    Location
    Ottawa, Canada
    MS-Off Ver
    Excel 2010
    Posts
    85

    Question autofit doesn't work when new sheet created?

    Hi

    I have code that I've reused from another macro. I'm copying information from one tab, creating a new workbook, pasting in there, saving that new workbook and closing.

    Within the course of the code, I also ensure that I autofit the rows so we can see all the text.

    When I "watch" the code run, the autofit works. However, when the new Workbook saves and closes, the lines resize smaller?? This doesn't happen in the original code.. I run it and it works fine, the autofit stays.

    I've tried placing the autofit code at different places.. nothing helps...

    Hope you have some ideas!
    Please Login or Register  to view this content.
    Last edited by pike; 12-19-2011 at 01:43 AM. Reason: edit code tags

+ 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