Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 211
Default formatting a work book

Hi...

I have a workbook with 45 sheets in it. I want to set the cell aligment of
all these sheets to wrap text and to set the font to aerial 10. This code
would be run from a macro button on a summary sheet within the same workbook.

I'm dead on my feet formatting each page. Any ideas would gratefully received.

Thanks Gordon.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default formatting a work book


This should do it...

For i = 1 To Sheets.Count
With Sheets(i).Cells
.Font.Name = "Arial"
.Font.Size = 10
.WrapText = True
End With
Next i


Hope that helps

--
R-Enem
-----------------------------------------------------------------------
R-Enemy's Profile: http://www.excelforum.com/member.php...fo&userid=1673
View this thread: http://www.excelforum.com/showthread.php?threadid=31935

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
work book to work book minimoi Excel Discussion (Misc queries) 2 March 4th 09 07:29 AM
Locate duplicates in a work book by using conditional formatting Pchris Excel Worksheet Functions 0 August 3rd 06 07:17 AM
Locate duplicates in a work book by using conditional formatting Pchris Excel Worksheet Functions 0 August 3rd 06 06:54 AM
Is there away to keep "auto save" from jumping to the first work sheet in the work book? Marc New Users to Excel 2 April 21st 05 01:27 AM
simultaneously work in a work book with other users Sweets Excel Discussion (Misc queries) 1 April 18th 05 07:35 PM


All times are GMT +1. The time now is 08:26 AM.

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"