Home |
Search |
Today's Posts |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
your solution just sets it for each new workbook created
after your apply the settings. For existing workbooks following would probably work ok. Sub ResetFont() With ActiveWorkbook Dim ws With .Styles("Normal").Font .Name = "Arial" .Size = 11 End With For Each ws In .Worksheets ws.UsedRange.Font.Name = "Arial" 'leave sizes intact.. Next End With End Sub keepITcool < email : keepitcool chello nl (with @ and .) < homepage: http://members.chello.nl/keepitcool "?B?U3RlZg==?=" wrote: My application adds new worksheets to an open workbook to perform separate calculations. These worksheets are formatted programmatically, containing e.g. comboboxes. To ensure correct layout the standard font should be Arial, size=11. I want to make sure that all users have this setting as default when they work with this application. I tried this, but without success though: With Application .StandardFont = "Arial" .StandardFontSize = "11" End With I put this code on the OK button on a form that adds a new sheet. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
default settings | Excel Discussion (Misc queries) | |||
Trying to restore all default settings | Excel Worksheet Functions | |||
Default settings for currency | Setting up and Configuration of Excel | |||
Default Page Settings | Excel Worksheet Functions | |||
Spreadsheet Default Settings | Excel Discussion (Misc queries) |