Results 1 to 7 of 7

Converting Worksheet to Proper-Case

Threaded View

  1. #1
    Forum Contributor
    Join Date
    06-13-2009
    Location
    Australia
    MS-Off Ver
    Excel 2016
    Posts
    245

    Converting Worksheet to Proper-Case

    Hello, Could some one please help me with the following:

    I have an Excel 2003 worksheet with all the data in it in Upper-case.

    I found this VBA code which works if you change a cell.

    Private Sub Worksheet_Change(ByVal Target As Range)
        If Target.Cells.Count > 1 Then
            Exit Sub
        End If
        On Error GoTo ErrHandler:
        If Not Application.Intersect(Me.Range("A1:U50000"), Target) Is Nothing Then
            If IsNumeric(Target.Value) = False Then
                Application.EnableEvents = False
                'Target.Value = StrConv(Target.Text, vbLowerCase)
                'Target.Value = StrConv(Target.Text, vbUpperCase)
                Target.Value = StrConv(Target.Text, vbProperCase)
                Application.EnableEvents = True
            End If
        End If
    ErrHandler:
        Application.EnableEvents = True
    End Sub
    Is there a way to automatically convert the entire worksheet from Upper-Case to Proper-Case using a macro please?

    Kind regards,

    Chris
    Last edited by longbow007; 09-09-2009 at 07:42 PM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1