Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 15
Default automatic column width

I have one worksheet with all my cells having the proper width and
height... Also I have about 100 worksheets that are identical to the
1st one except the information that goes in cells. What I need is a way
to automaticlly adjust all other worksheets so they are all the same as
the 1st one that has all columns and rows adjusted.... Hope it is
clear.

Thank you very much in advance...

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default automatic column width

Sub formatsheets()
worksheets("Master").Cells.Copy
for each sh in Worksheets
if lcase(sh.Name) < "master" then
sh.Cells.Pastespecial xlFormats
end if
next
end sub

This does more than copy row heights and column Widths - it copies all
formatting, so if that is OK test it on a copy of your workbook. NO MERGED
cells.

--
Regards,
Tom Ogilvy


"Monte0682" wrote:

I have one worksheet with all my cells having the proper width and
height... Also I have about 100 worksheets that are identical to the
1st one except the information that goes in cells. What I need is a way
to automaticlly adjust all other worksheets so they are all the same as
the 1st one that has all columns and rows adjusted.... Hope it is
clear.

Thank you very much in advance...


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
Automatic bar width in stacked column chart too thin rafcoles Charts and Charting in Excel 3 February 11th 08 12:55 AM
How to make cell width different than the column width it lies in John Excel Discussion (Misc queries) 2 September 11th 06 10:41 PM
Set Column Width Based On Total Width Of Other Columns rayneraingoaway Excel Programming 1 June 28th 06 11:10 PM
Automatic column width adjustment Senator Excel Worksheet Functions 4 July 3rd 05 08:17 PM


All times are GMT +1. The time now is 10:57 PM.

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

About Us

"It's about Microsoft Excel"