Change to Upper Case when a keystroke is made

garypea123

Board Regular
Joined
Mar 16, 2020
Messages
221
Office Version
  1. 365
Platform
  1. Windows
Hi,

Is there an automated VBA that will change the text in D4:D12, D22:D35 into upper case letters when a keystroke is made :)

Someone completes this file, and my OCD ways always want this in UPPER CASE.

Unless these is a simple way (without formulas)

Is
Capture.PNG
 
I cannot see anywhere on the internet where you can format the cells to turn small case into upper case automatically.

If it was available, then this would be the easiest thing.
Format with a capitals font (e.g. Arial Caps, Felix Titling, etc)
If you don't have any suitable fonts installed, there are plenty of free fonts on the internet available for download.
 
Upvote 0

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
Yes, its a case I do not have the fonts available.

Not sure how it works with downloading using our business (not even sure if I can download to PC). Also, if I use a font which is not then on someone elses computer, does this not cause any issues.
 
Upvote 0
Yes, its a case I do not have the fonts available.

Not sure how it works with downloading using our business (not even sure if I can download to PC). Also, if I use a font which is not then on someone elses computer, does this not cause any issues.
Then you may have to go with the code suggestions we posted for you.
 
Upvote 0
Yes, its a case I do not have the fonts available.

Not sure how it works with downloading using our business (not even sure if I can download to PC). Also, if I use a font which is not then on someone elses computer, does this not cause any issues.
Are you sure you have no capital fonts?
For example, Felix Titling is a standard font that comes with Office (including your version).
 
Upvote 0
Actually when I paste in the text (Felix Titling) it actually works and changes to CAPS.

However, I do not see this still in the drop down search for some reason. So it is available in the back ground, but not actually visible in the fonts area
 
Upvote 0
Run this macro in a new blank workbook to see what fonts are installed :
VBA Code:
Sub InstalledFonts()
Dim rng As Range, cel As Range
Dim FontList, TempBar, i%
Set FontList = Application.CommandBars("Formatting").FindControl(ID:=1728)
Application.ScreenUpdating = False

'If Font control is missing, create a temp CommandBar
If FontList Is Nothing Then
    Set TempBar = Application.CommandBars.Add
    Set FontList = TempBar.Controls.Add(ID:=1728)
End If

'Put the font names into column A
[A:A].ClearContents
For i = 0 To FontList.ListCount - 1
    Cells(i + 2, 1) = FontList.List(i + 1)
Next i

''Delete temp CommandBar if it exists
On Error Resume Next
TempBar.Delete
On Error GoTo 0

'Put the font styles into column B
Set rng = Range("B2:B" & Cells(Rows.Count, "A").End(xlUp).Row)
[B:B].ClearContents
rng = "abcdefghijklmnopqrstuvwxyz  ABCDEFGHIJKLMNOPQRSTUVWXYZ 1234567890"
For Each cel In rng
    cel.Font.Name = cel(1, 0)
Next

''Optional step : Remove Cambria Math fonts
'With [A:A].Find("Cambria Math")(1, 2)
'    .Value = "(This font deliberately omitted - same as Cambria)"
'    .Font.Name = "Arial"
'    .Font.Color = vbRed
'End With

[A:B].EntireColumn.AutoFit
rng.EntireRow.AutoFit

End Sub
 
Upvote 0
You can format the data in this font style: Perpetua Titling MT
it will turn everything in small to caps
 
Upvote 0
This could be put in the ThisWorkbook module :
VBA Code:
Private Sub Workbook_Open()
Sheets("Sheet1").Columns("D").Font.Name = "Felix Titling"
End Sub
 
Upvote 0
Thanks guys, all of this have been very useful, I will definitely use some of the font suggestions and then use the workbook_open function to change everything upon opening. I love to learn these news things :)
 
Upvote 0

Forum statistics

Threads
1,214,832
Messages
6,121,853
Members
449,051
Latest member
excelquestion515

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