Format one cell with specific font & size etc

ipbr21054

Well-known Member
Joined
Nov 16, 2010
Messages
5,738
Office Version
  1. 2007
Platform
  1. Windows
Morning,

I have a cell of which is B13
This cell i would like to have it at a specific font size,font type etc.
This cell works on two different option.

I can select from a drop down list in the cell.
OR
I manually enter a value in the cell then pressing a button.

Either way the text is the incorrect font & size etc for what i need it to be.
Can you advise how i sort this please.
 

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
Do i need to add a code into the CF page if so please can you advise
 
Upvote 0
Hi,
I have done the following but the Font.Bold line of code cancels out the Alignment below it & as a result the text in that cell is shown to the left.
Can you advise why or the correct way to write it.

Thanks

Code:
Private Sub Worksheet_Activate()    Range("A13").Select
    ActiveWindow.ScrollRow = 14
    Range("B13").Interior.ColorIndex = 6
    Range("B13").Font.Size = 18
    Range("B13").Font.Bold = True
    Range("B13").Name = "Calibri"
    Range("B13").HorizontalAlignment = xlGeneral
    Range("B13").VerticalAlignment = xlCenter
End Sub
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,329
Members
452,635
Latest member
laura12345

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