Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 211
Default Format all sheets in a workbook

Hi

I've already had a partial answer to this but it didn't work because I think
I wasn't specific enough. Here goes again.

I have 45 sheets in my workbook. I desperate for code that will allow me to
format all sheets in my workbook at once, at the same time so that cell
allignments allow for wrap cells and ariel font 10.

The code below kindly provided only formats one sheet at a time. I'm using
Office 2000. Any help would be great.

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


Thanks

Gordon.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default Format all sheets in a workbook

With a macro you must loop

Manual you can select all sheets(group)
Do your things
Ungroup

--
Regards Ron de Bruin
http://www.rondebruin.nl


"Gordon" wrote in message ...
Hi

I've already had a partial answer to this but it didn't work because I think
I wasn't specific enough. Here goes again.

I have 45 sheets in my workbook. I desperate for code that will allow me to
format all sheets in my workbook at once, at the same time so that cell
allignments allow for wrap cells and ariel font 10.

The code below kindly provided only formats one sheet at a time. I'm using
Office 2000. Any help would be great.

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


Thanks

Gordon.



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
Apply Conditional Format to all sheets in same workbook Der Musensohn Excel Discussion (Misc queries) 4 February 26th 10 04:24 PM
Multiple Sheets (Need to create 500 individual sheets in one workbook, pulling DATA Amaxwell Excel Worksheet Functions 4 August 17th 06 06:23 AM
How to repeat a code for selected sheets (or a contiguous range of sheets) in a Workbook? Dmitry Excel Worksheet Functions 6 March 29th 06 12:43 PM
Format all sheets in one Workbook Joe_bruin Excel Discussion (Misc queries) 5 December 6th 05 05:54 PM
Sheets select method fails when workbook is opened by another workbook Mike Excel Programming 2 June 8th 04 04:17 AM


All times are GMT +1. The time now is 01:02 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"