ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   formate sheet row a:a (https://www.excelbanter.com/excel-programming/420812-formate-sheet-row.html)

Ranjit kurian

formate sheet row a:a
 
i have a workbook with more than 10 sheets, so i need a macro to select all
the sheets of my workbook without mentioning any sheetnames, because the
sheet names keep changes, it should select row A:A then change the font color
to red and bold at a time to all the sheets.

If not possible to select all the sheets at a time atleast select each sheet
one after other and format the row a:a

Note: sheet names keep changes.



filo666

formate sheet row a:a
 
Hi, try this:

Sub changeformat()
For Each wk In ActiveWorkbook.Worksheets
wk.Columns("a:a").Font.ColorIndex = 3
wk.Columns("a:a").Font.Bold = True
Next wk
End Sub

"Ranjit kurian" wrote:

i have a workbook with more than 10 sheets, so i need a macro to select all
the sheets of my workbook without mentioning any sheetnames, because the
sheet names keep changes, it should select row A:A then change the font color
to red and bold at a time to all the sheets.

If not possible to select all the sheets at a time atleast select each sheet
one after other and format the row a:a

Note: sheet names keep changes.




All times are GMT +1. The time now is 11:37 PM.

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