Results 1 to 5 of 5

convert the text in the given range to a propercase when is not connected with dot

Threaded View

  1. #1
    Registered User
    Join Date
    08-24-2017
    Location
    DUBAI UAE
    MS-Off Ver
    2021
    Posts
    81

    convert the text in the given range to a propercase when is not connected with dot

    I want to modify the below VBA where if the text is connected by a dot then only the attached word with the dot will NOT be converted to a propercase.

    I have just added the worksheet, hoping for a resolution to my inquiry.

    Book1.3.3.xlsm


    Private Sub Worksheet_Change(ByVal Target As Range)
    'Forces text to Proper case for the range A3:X39
    
    If Target.Cells.Count > 1 Or Target.HasFormula Then Exit Sub
    
    
    On Error Resume Next
    
    If Not Intersect(Target, Range("C6:K20,M6:U20,C24:K38,M24:U38")) Is Nothing Then
    
    Application.EnableEvents = False
    
    Target = StrConv(Target, vbProperCase)
    
    Application.EnableEvents = True
    
    End If
    
    On Error GoTo 0
    
    
    
    
    End Sub
    REJTEJRWO KKQTWEK[P.jpg
    Last edited by MAJID1479; 07-16-2023 at 02:48 AM.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Capitalize or ProperCase Text column. Tried to write IF statement.
    By Narseman in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-31-2018, 12:12 PM
  2. [SOLVED] box with text connected to a cell
    By IT-Dinosaur in forum Excel General
    Replies: 3
    Last Post: 08-26-2014, 09:02 AM
  3. [SOLVED] Code to change value to ProperCase
    By kosherboy in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 06-25-2014, 09:20 PM
  4. UpperCase to Propercase
    By Jeniffer in forum Excel General
    Replies: 14
    Last Post: 06-11-2012, 02:51 AM
  5. ProperCase in vba
    By noodle48 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-29-2011, 03:27 PM
  6. Help with VBA for propercase
    By boolean in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 03-27-2011, 04:52 PM
  7. convert a range of lowercase text to upper text or vice versa
    By jackdaw in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-16-2005, 05:06 PM

Tags for this Thread

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