PC Review


Reply
Thread Tools Rate Thread

2007 AutoFit, WrapText, fails

 
 
facmanboss
Guest
Posts: n/a
 
      2nd Oct 2009
I use VBA macros to custom sort a range of columns and rows. All the cells
are set to WrapText. In one of the columns, each cell has data that makes the
cell height variable depending on what data resides in that cell (hence
Wraptext), thus row height variable. After sorting using the VBA macro, The
pre-existing cell heights don't change to match the wrapped text.

I have tried manually AutoFit and also AutoFit the range rows in the code
without success. Here is the weird part.

If I add a manual line feed to the data just as a test, AutoFit will resize
properly on sorting.

Any ideas?
Thanks,
facmanboss

 
Reply With Quote
 
 
 
 
michdenis
Guest
Posts: n/a
 
      3rd Oct 2009
Hi,

Try this,

With you column , remove the wraptext property
sort your data and apply the
wraptext property to your column.

It should worked fine !



"facmanboss" <(E-Mail Removed)> a écrit dans le message de groupe de
discussion : AC72C9BD-76A6-4CE3-9F8E-(E-Mail Removed)...
I use VBA macros to custom sort a range of columns and rows. All the cells
are set to WrapText. In one of the columns, each cell has data that makes the
cell height variable depending on what data resides in that cell (hence
Wraptext), thus row height variable. After sorting using the VBA macro, The
pre-existing cell heights don't change to match the wrapped text.

I have tried manually AutoFit and also AutoFit the range rows in the code
without success. Here is the weird part.

If I add a manual line feed to the data just as a test, AutoFit will resize
properly on sorting.

Any ideas?
Thanks,
facmanboss

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Stop autofit 2007 Sherobot Microsoft Powerpoint 2 17th Dec 2009 02:41 PM
Autofit/wraptext on vbLf problem KenThompson Microsoft Excel Programming 2 9th Jul 2009 01:51 PM
Excel 2007 Autofit SJHMCSE Microsoft Excel Misc 4 25th Oct 2008 09:37 PM
Powerpoint 2007 autofit Neal Stoughton Microsoft Powerpoint 0 15th Dec 2006 07:35 PM
Range WrapText and AutoFit with Bold Peter Gummer Microsoft Excel Programming 4 28th Feb 2006 03:37 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:04 PM.