ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Autofit to contents (https://www.excelbanter.com/excel-discussion-misc-queries/229558-autofit-contents.html)

Donna

Autofit to contents
 
Is there a way to format an Excel worksheet to "autofit to contents" the way
it works in a Word table?

Sheeloo

Autofit to contents
 
Format-Row-AutoFIt
Format-Column-AutoFIt

"Donna" wrote:

Is there a way to format an Excel worksheet to "autofit to contents" the way
it works in a Word table?


June7

Autofit to contents
 
Do you mean to adjust the width? Not that I know of. Would have to build
code to handle that. You can set cell Format/Alignment property to wrap text
and the row height will expand to acommodate the wrapped text.

"Donna" wrote:

Is there a way to format an Excel worksheet to "autofit to contents" the way
it works in a Word table?


June7

Autofit to contents
 
I thought Donna meant to have this adjustment occur without any action by
user. Of course you can select the columns and use Format settings manually,
to automate would require VBA or macro.

"June7" wrote:

Do you mean to adjust the width? Not that I know of. Would have to build
code to handle that. You can set cell Format/Alignment property to wrap text
and the row height will expand to acommodate the wrapped text.

"Donna" wrote:

Is there a way to format an Excel worksheet to "autofit to contents" the way
it works in a Word table?


Donna

Autofit to contents
 
Yes, I meant to have it do it automatically without the user having to know
how to do anything. In Word, the field grows as the entries get larger.
Thanks for your ideas about a macro or VBA.

"June7" wrote:

I thought Donna meant to have this adjustment occur without any action by
user. Of course you can select the columns and use Format settings manually,
to automate would require VBA or macro.

"June7" wrote:

Do you mean to adjust the width? Not that I know of. Would have to build
code to handle that. You can set cell Format/Alignment property to wrap text
and the row height will expand to acommodate the wrapped text.

"Donna" wrote:

Is there a way to format an Excel worksheet to "autofit to contents" the way
it works in a Word table?



All times are GMT +1. The time now is 07:05 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com