Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
I have a workbook with several sheets. I inherited this workbook and it has
multiple fonts. I want code to change all fonts to a common font, say Verdana or Arial but I want all other formatting to stay the same...like font size, borders, etc. |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Figured it out I think...this seems to work:
Sub set_fonts() Dim sh As Worksheet For Each sh In ActiveWorkbook.Worksheets sh.Activate Cells.Select With Selection.Font .Name = "Verdana" End With Next sh End Sub "Steve" wrote: I have a workbook with several sheets. I inherited this workbook and it has multiple fonts. I want code to change all fonts to a common font, say Verdana or Arial but I want all other formatting to stay the same...like font size, borders, etc. |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]() How many sheets are you talking about? -- dalsx1 ------------------------------------------------------------------------ dalsx1's Profile: http://www.excelforum.com/member.php...o&userid=33041 View this thread: http://www.excelforum.com/showthread...hreadid=528560 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
can't change font | Excel Worksheet Functions | |||
How do I change the font color based on results of an IF stateme | Excel Worksheet Functions | |||
How to change the default Border, Font Color, and Cell Color | Excel Discussion (Misc queries) | |||
change font color of first cell in data table attached to chart | Charts and Charting in Excel | |||
Change datalabel font size for all chartobjects in a row | Charts and Charting in Excel |