![]() |
|
#12
|
|||
|
|||
|
No it's local.
i found that script: How Can I Extract Word Paragraphs That Use a Specific Style? | Scripting Blog how can i change the file name to the document that is open? Set objWord = CreateObject(“Word.Application”) objWord.Visible = True Set objDoc = objWord.Documents.Open(“C:\Scripts\Test.doc”) Set objSelection = objWord.Selection Set colParagraphs = objDoc.Paragraphs For Each objParagraph in colParagraphs If objParagraph.Style <> “Heading 1” Then objParagraph.Range.Select objSelection.Cut End If Next objDoc.SaveAs(“C:\Scripts\Headings.doc”) objWord.Quit |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
Export properties of a given Style.
|
mc1903 | Word VBA | 2 | 01-17-2019 08:35 AM |
VBA Export Data as Text from Excel to Word
|
lwbarnes | Word VBA | 3 | 06-09-2016 02:47 PM |
| Matching text style to drawing object style | notarichman | PowerPoint | 0 | 03-07-2011 11:34 AM |
| Objective: Automatically export email text,attachment text to DB friendly format | SilentLee | Outlook | 0 | 11-14-2010 02:45 PM |
| Need to delete style and style text | mclan | Word | 0 | 08-04-2008 12:05 PM |