LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 22
Default problem with formatting text in every worksheet same workbook

Hi all,
I have a simple code below that is supposed to bold specific cells in
each worksheet same workbook but is not doing the job. Can anyone help?

Sub Format_All_Worksheets()
Dim sh As Worksheet

For Each sh In ThisWorkbook.Worksheets

With sh.Range("A:2,A:10,A:19,A:24,A:33,A:81").Font.Bold = True

End With

Next sh


End Sub

TIA,
Moon

 
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
how do I apply formatting from one worksheet to a whole workbook? amergerm35 Excel Worksheet Functions 5 August 28th 08 08:34 PM
conditional formatting - problem with text cell value from formula PBcorn Excel Worksheet Functions 2 April 18th 08 11:39 AM
Having the same formatting of each worksheet in any given workbook G. Dagger[_2_] Excel Discussion (Misc queries) 2 January 7th 08 07:55 PM
Conditional formatting of text in a shared workbook. TW Excel Worksheet Functions 1 March 30th 06 06:26 PM
Workbook crashes after renaming a worksheet - References problem? BenD[_2_] Excel Programming 0 April 21st 04 01:22 AM


All times are GMT +1. The time now is 01:18 PM.

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

About Us

"It's about Microsoft Excel"