Results 1 to 21 of 21

TEXT formatting withing single quote

Threaded View

  1. #1
    Registered User
    Join Date
    11-20-2018
    Location
    Pune,India
    MS-Off Ver
    16
    Posts
    13

    TEXT formatting withing single quote

    Screenshot 2018-12-15 14.22.38.png
    Screenshot_9.jpg

    Macro :
     Sub formating()
    
    
    Dim L As Long
     L = Range("A1", Range("A1").End(xlDown)).Rows.Count
        ActiveSheet.Select
     Columns("B:B").Select
       Selection.NumberFormat = "General"
        Range(Cells(2, 2), Cells(L, 2)).FormulaR1C1 = _
           "=IFERROR(REPLACE(UPPER(LEFT(RC[-1],1))&MID(LOWER(RC[-1]),2,999),FIND(""'"",UPPER(LEFT(RC[-1],1))&MID(LOWER(RC[-1]),2,999)),2,UPPER(MID(UPPER(LEFT(RC[-1],1))&MID(LOWER(RC[-1]),2,999),FIND(""'"",UPPER(LEFT(RC[-1],1))&MID(LOWER(RC[-1]),2,999)),2))),UPPER(LEFT(RC[-1],1))&MID(LOWER(RC[-1]),2,999))"
       
    
     End Sub

    Hi Team,

    I want to format text as in second image. I dont know much about vba. Can you please advise.


    Thanks,
    Gajjo
    Attached Files Attached Files
    Last edited by Gajjo_Boss; 12-15-2018 at 05:33 AM. Reason: add attach

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Single quote vba
    By hanif in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-29-2016, 04:58 AM
  2. [SOLVED] single quote/CID/single quote/comma
    By kl27302 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 02-09-2014, 10:10 AM
  3. [SOLVED] How to find and replace hidden single quote ? (This sign is single quote: ')
    By HerryMarkowitz in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-19-2014, 03:48 PM
  4. Need to remove leading single quote from text cells
    By katcar in forum Excel General
    Replies: 4
    Last Post: 10-09-2009, 04:48 PM
  5. Single Quote
    By Kinjalip in forum Excel General
    Replies: 4
    Last Post: 04-06-2006, 07:30 AM
  6. Leading single quote
    By AA2e72E in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-13-2005, 07:06 AM
  7. What does SINGLE QUOTE mean before value in a cell?
    By surotkin in forum Excel General
    Replies: 2
    Last Post: 04-13-2005, 08:42 AM

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