Wrox Programmer Forums
|
Excel VBA Discuss using VBA for Excel programming.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Excel VBA section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 11th, 2005, 09:04 AM
Registered User
 
Join Date: May 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Auto Resizing a Row

Hi there

I'm having a problem with autofit() when programming excel from vb.net.

My issue is that I have 5 cells merged into one on a single row, with WrapText on, but when I enter a long string of text I only see the first line (and the top pixel or two of the line underneath). I obviously want my merged area to "grow" downwards as it is filled with new text.

I have tried running .. myRange.EntireRow.Autofit() after making the RowHeight very large, but all it does is resize the row back to its original one line height, and not to the bottom line of text.

Perhaps my problem isn't with Autofit() .. but if not, how else to I get a row to "fit" the wrapped text in it ?

Can anyone help ?

Thanks in advance

Andy





Similar Threads
Thread Thread Starter Forum Replies Last Post
Auto Sizing Div Width with window resizing javs Javascript 1 March 20th, 2008 01:13 AM
Auto Refresh and Auto Delete deontae45 VB.NET 2002/2003 Basics 1 September 29th, 2006 04:53 PM
Need Help with Resizing... alaamri HTML Code Clinic 3 August 29th, 2005 01:54 AM
Read a column and Search Row by Row in another col AyatKh Excel VBA 2 January 26th, 2005 12:02 PM
Datasheet View Auto Highlight a Row Dataman Access VBA 0 February 15th, 2004 11:16 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.