Vba - font name arial for entire sheet

flynavy

New Member
Joined
Mar 18, 2015
Messages
43
I have a complex VBA macro. It works great. And yet, one line of code is beyond me. I'm trying to make every cell in my active sheet Arial size 10. My code is not working. The sheet comes out Calibri-Bold-10. Here is my code. Has to be simple. Guess simple is above my pay grade. Thanks in advance.

ActiveSheet.Cells.Font.Name = Arial
ActiveSheet.Cells.Font.Bold = True
ActiveSheet.Cells.Font.Size = 10
Application.ScreenUpdating = True

Just after the above code, I save the workbook (single-sheet workbook) to a new .xlsx name, and close the existing macro workbook without saving it
 
Last edited:

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
Close. ;)
Code:
ActiveSheet.Cells.Font.Name = "Arial"
 
Upvote 0

Forum statistics

Threads
1,214,875
Messages
6,122,040
Members
449,063
Latest member
ak94

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top