ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Excel 2002: How to insert an Auto Fit Width button at the tool bar (https://www.excelbanter.com/excel-discussion-misc-queries/235676-excel-2002-how-insert-auto-fit-width-button-tool-bar.html)

Mr. Low

Excel 2002: How to insert an Auto Fit Width button at the tool bar
 
Hi,

I try to customise my tool basr with the above button, but could not find
this option under the customisez selection Format Column Width Auto Fit.

Can anybody help me on this ?

Thanks

Low




--
A36B58K641

FSt1

Excel 2002: How to insert an Auto Fit Width button at the tool bar
 
hi
there isn't a built in icon for auto fit. there is one of manual fit. auto
fit is usually done you placing the mouse pointer on the column header row on
the right line of the column you want to fit. the mouse pointer will change
to a vertical line with arrows on both sides pointing out. double click to
auto fit.
but if you want an icon, you can attach this macro to your button.
just select the column you want to autofit then click the button.
sub autofitcolumn()
selection.entirecolumn.autofit
end sub
regards
FSt1

"Mr. Low" wrote:

Hi,

I try to customise my tool basr with the above button, but could not find
this option under the customisez selection Format Column Width Auto Fit.

Can anybody help me on this ?

Thanks

Low




--
A36B58K641


Mr. Low

Excel 2002: How to insert an Auto Fit Width button at the tool
 
Hi,

Thanks for your reply.

Low
--
A36B58K641


"FSt1" wrote:

hi
there isn't a built in icon for auto fit. there is one of manual fit. auto
fit is usually done you placing the mouse pointer on the column header row on
the right line of the column you want to fit. the mouse pointer will change
to a vertical line with arrows on both sides pointing out. double click to
auto fit.
but if you want an icon, you can attach this macro to your button.
just select the column you want to autofit then click the button.
sub autofitcolumn()
selection.entirecolumn.autofit
end sub
regards
FSt1

"Mr. Low" wrote:

Hi,

I try to customise my tool basr with the above button, but could not find
this option under the customisez selection Format Column Width Auto Fit.

Can anybody help me on this ?

Thanks

Low




--
A36B58K641



All times are GMT +1. The time now is 07:06 PM.

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