BárbaraBettanin,
deixa eu ver se entendi sobre a função "TitleCase"...
... essa função precisa converter tudo que está no intervalo:
- "... Range("m4:m2002"), ..."
Em texto com a primeira letra em maiúscula, com exceção das conjunções... é isso?
talvez seja possível customizar essa função para que não entre em três rotinas "FOR" aninhadas...
Achei sua função aqui:
=======================================
Proper Case with extra rules in Excel
https://stackoverflow.com/questions/39569861/proper-case-with-extra-rules-in-excel
=======================================
Algumas dicas:
=======================================
MS Excel: How to use the STRCONV Function (VBA)
https://www.techonthenet.com/excel/formulas/strconv.php
=======================================
Convert to Proper Case
https://www.excel-easy.com/vba/examples/convert-to-proper-case.html
=======================================
Evento Worksheet.Change (Excel)
Ocorre quando as células da planilha são alteradas pelo usuário ou por um link externo.
https://msdn.microsoft.com/pt-br/vba/excel-vba/articles/worksheet-change-event-excel?f=255&MSPPError=-2147217396
=======================================
Proper case on Excel VBA: How to add a rule and apply the function on entire worksheet
https://stackoverflow.com/questions/39898804/proper-case-on-excel-vba-how-to-add-a-rule-and-apply-the-function-on-entire-wor
=======================================
VBA Excel - changing case to Proper Case
Sub test()
Dim Lastrow As Integer
Dim range As range
Dim c As range
With Worksheets("Overdue PO")
Lastrow = Columns("D:F").Cells.Find(What:="*", LookIn:=xlValues, SearchOrder:=xlByColumns, SearchDirection:=xlPrevious).Row
.range("D2:F" & Lastrow).Select
Set range = Selection
End With
For Each c In range
c.Value = Application.WorksheetFunction.Proper(c.Value)
Next c
End Sub
https://stackoverflow.com/questions/36601733/vba-excel-changing-case-to-proper-case
=======================================
Rules for Capitalization in Titles of Articles
http://grammar.yourdictionary.com/capitalization/rules-for-capitalization-in-titles.html
=======================================
[]'s,
Fabio I.