Loading
Scriptbox
 VBScript Links 
 About VBscript 
 JavaScript Links 
 About JavaScript 
 Powershell Links 
 PSCRIPT the Script Launcher 
 PowerShell Shortcut Keys 
 About Powershell 
     VBScript
    JavaScript
    Powershell
Disclaimer
Contact
Latest 10 Scripts
Script search
  :: { Category } :: 0-9ABCDEFGHIJKLMNOPQRSTUVWXYZ
         

Search Options:  Change  the  Paragraph  Case  in  Microsoft  Word  

 Content of Change the Paragraph Case in Microsoft Word.vbs
MD5 Hash: A72B5938689B269A97FB86F2F9F46FD9
Const wdTitleWord = 2
Const wdTitleSentence = 4

Set objWord = CreateObject("Word.Application")
objWord.Visible = True

Set objDoc = objWord.Documents.Open("C:\Scripts\Test.doc")

Set colParagraphs = objDoc.Paragraphs

For Each objParagraph in colParagraphs
If objParagraph.Range.Font.Size = 14 Then
objParagraph.Range.Case = wdTitleWord
Else
objParagraph.Range.Case = wdTitleSentence
End If
Next



   © 2008 - 2013 Boris Toll      :: Scripts available: 6.481 ::      :: scriptbox.toll.at ::      :: powered by www.toll.at ::
  Google Entries:n/a
  Yahoo Backlinks:n/a
  Live Backlinks:n/a
  del.icio.us Bookmarks:n/a
  Technorati Links:n/a