View Single Post
 
Old 10-08-2015, 08:19 PM
macropod's Avatar
macropod macropod is offline Windows 7 64bit Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,963
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

For a macro that handles the reformatting of text sourced from a wide range of material, including PDFs emails & web pages, see: https://www.msofficeforums.com/word/...html#post32907

That may also resolve your issue with 'strange space characters get through from time to time in front of the word'.

As for a macro to capitalise words in scenarios like you said, you might try something along the lines of:
Code:
Sub Demo()
Application.ScreenUpdating = False
Dim Para As Paragraph
For Each Para In ActiveDocument.Paragraphs
  With Para.Range
    .End = .End - 1
    If .ComputeStatistics(wdStatisticWords) < 3 Then
      .Text = Trim(UCase(.Text))
    End If
  End With
Next
Application.ScreenUpdating = False
End Sub
The other examples require nothing more complicated than a Find/Replace. For example:
Find = ^pprofessional experience^p
Replace = ^pPROFESSIONAL EXPERIENCE^p
such processing could be incorporated into a macro based on the one in the above link.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote