Results 1 to 10 of 18

Thread: Initial capital customized

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Senior Member
    Join Date
    Jun 2012
    Posts
    337
    Rep Power
    13
    strconv() is your friend:

    Code:
    Sub M_snb()
       sn = [B3:B12]
       
       For j = 1 To UBound(sn)
         sn(j, 1) = Replace(Replace(StrConv(Replace(Replace(sn(j, 1), ".", ". "), "/", "/ "), 3), ". ", "."), "/ ", "/")
         If sn(j, 1) Like "*[0-9]*" Then sn(j, 1) = UCase(sn(j, 1))
         
         For Each it In Split("di da con per mm in a e la le")
           If InStr(1, sn(j, 1) & " ", " " & it & " ", 1) Then sn(j, 1) = Replace(Replace(sn(j, 1), UCase(it), it), StrConv(it, 3), it)
         Next
       Next
       
       [K3:K12] = sn
    End Sub
    Last edited by snb; 09-18-2015 at 01:57 AM.

Posting Permissions

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