Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 03-19-2018, 01:19 PM
MaineLady MaineLady is offline Formatting cells to display UpperCase Windows 7 32bit Formatting cells to display UpperCase Office 2013
Advanced Beginner
Formatting cells to display UpperCase
 
Join Date: Sep 2014
Posts: 52
MaineLady is on a distinguished road
Default Formatting cells to display UpperCase

Is there a way to format cells so that no matter what case is entered it will display in upper case?
Reply With Quote
  #2  
Old 03-19-2018, 04:35 PM
Logit Logit is offline Formatting cells to display UpperCase Windows 10 Formatting cells to display UpperCase Office 2007
Expert
 
Join Date: Jan 2017
Posts: 533
Logit is a jewel in the roughLogit is a jewel in the roughLogit is a jewel in the rough
Default

Code:
#1:
Private Sub Worksheet_Change(ByVal Target As Range)
    Dim cell   As Range
    If Intersect(Target, [C8:D30]) Is Nothing Then Exit Sub
    Application.EnableEvents = False
    For Each cell In Intersect(Target, [C8:D30])
        cell = UCase(cell)
    Next
    Application.EnableEvents = True
End Sub


#2:
Option Explicit

Private Sub Worksheet_Change(ByVal Target As Range)
    Dim cell   As Range
    On Error Resume Next
    Set Target = Range("C8:D30")
    Application.EnableEvents = False
    For Each cell In Target
        cell = UCase(cell)
    Next
    Application.EnableEvents = True
End Sub
Reply With Quote
  #3  
Old 03-19-2018, 04:44 PM
MaineLady MaineLady is offline Formatting cells to display UpperCase Windows 7 32bit Formatting cells to display UpperCase Office 2013
Advanced Beginner
Formatting cells to display UpperCase
 
Join Date: Sep 2014
Posts: 52
MaineLady is on a distinguished road
Default

Thank you.
Reply With Quote
  #4  
Old 03-19-2018, 08:15 PM
Logit Logit is offline Formatting cells to display UpperCase Windows 10 Formatting cells to display UpperCase Office 2007
Expert
 
Join Date: Jan 2017
Posts: 533
Logit is a jewel in the roughLogit is a jewel in the roughLogit is a jewel in the rough
Default

You are welcome.
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Formatting cells to display UpperCase Master slides and uppercase formatting? gagner PowerPoint 1 01-15-2015 12:03 PM
Display cells dependent on option buttons inq80 Excel 0 09-01-2014 03:40 PM
Formatting cells to display UpperCase How to set a no-display value to cells with a no-value link KIM SOLIS Excel 3 10-31-2011 11:37 PM
STOP display of formatting commands richopp Word 2 10-14-2010 05:14 PM
Display the cells which add up to a certain sum edbyford Excel 1 11-26-2009 01:30 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 04:03 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft