Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 40
Default Word wrap and cell size

I have 2 columns that I need to automatically increase the size of the row
that would be using a word wrap. I might have several hundred rows that
does not need to be increased in size but several rows would need it because
of word wrap. Can anyone suggest a macro for this.

Thanks


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 735
Default Word wrap and cell size

Simple option you could adapt....

Sheets("Sheet1").Rows("1:" & .Cells(.Rows.Count, "A").End(xlUp).Row).AutoFit


--

Regards,
Nigel




"Stanley Braverman" wrote in message
...
I have 2 columns that I need to automatically increase the size of the row
that would be using a word wrap. I might have several hundred rows that
does not need to be increased in size but several rows would need it
because of word wrap. Can anyone suggest a macro for this.

Thanks


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 40
Default Word wrap and cell size

Getting Invalid or unqualified reference error

Sub wordwrap()

Sheets("Sheet1").rows("1:" & .Cells(.rows.Count, "A").End(xlUp).Row).AutoFit

End Sub

"Nigel" wrote in message
...
Simple option you could adapt....

Sheets("Sheet1").Rows("1:" & .Cells(.Rows.Count,
"A").End(xlUp).Row).AutoFit


--

Regards,
Nigel




"Stanley Braverman" wrote in message
...
I have 2 columns that I need to automatically increase the size of the row
that would be using a word wrap. I might have several hundred rows that
does not need to be increased in size but several rows would need it
because of word wrap. Can anyone suggest a macro for this.

Thanks




  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 22,906
Default Word wrap and cell size

Stanley

How would you designate which rows would need word wrap?

BTW..........you cannot increae row size in just two columns.

Row size is a property of the entire row.


Gord Dibben MS Excel MVP

On Wed, 4 Mar 2009 20:04:06 -0700, "Stanley Braverman"
wrote:

I have 2 columns that I need to automatically increase the size of the row
that would be using a word wrap. I might have several hundred rows that
does not need to be increased in size but several rows would need it because
of word wrap. Can anyone suggest a macro for this.

Thanks




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Controlling word wrap in a cell Victor Delta[_2_] Excel Discussion (Misc queries) 2 February 14th 10 10:58 PM
Problem w/word wrap opening up cell Meenie Excel Discussion (Misc queries) 2 January 21st 09 04:53 PM
Word Wrap and extending cell/row/column size kippers Excel Discussion (Misc queries) 1 February 5th 08 03:18 PM
Getting word wrap to work in a merged cell Dave Couch Excel Discussion (Misc queries) 1 October 31st 07 11:17 PM
how do I get alt-enter to expand word wrap cell GREYL Excel Discussion (Misc queries) 5 November 14th 05 05:28 PM


All times are GMT +1. The time now is 10:49 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"