Loading |
VBScript |
JavaScript |
Powershell |
Search Options: Change the Paragraph Case in Microsoft WordContent of Change the Paragraph Case in Microsoft Word.vbsMD5 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 :: |