![]() |
|
|
|
#1
|
|||
|
|||
|
Hello All,
I'm still can't figure it out. I try this method but it doesn't printout the results to the word doc. With .Find .ClearFormatting .Replacement.ClearFormatting .Text = "Functional Hazard Analysis/System Safety Assessment Summary^p" .Style = "Heading 1" .Format = True .Wrap = wdFindStop .MatchCase = True .MatchWholeWord = False .MatchWildcards = False .MatchSoundsLike = False .MatchAllWordForms = False .Execute End With If .Find.Found = True Then Set Rng = .Duplicate Set Rng = Rng.GoTo(What:=wdGoToBookmark, Name:="\HeadingLevel") Rng.Start = Rng.Paragraphs.First.Range.End Rng.End = Rng.Paragraphs.Last.Range.Start End If |
|
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Need to copy texts from excel and paste in to the Notepad++ in between the particular tags | ganesang | Word VBA | 2 | 08-27-2018 02:05 AM |
Applied Styles to Headings in Multi-Level List; now ALL second level headings are 1.XX
|
NNL | Word | 1 | 08-09-2017 02:52 PM |
| Numbered headings not working as expected after customising headings | seanspotatobusiness | Word | 5 | 03-03-2017 04:44 AM |
| Copy, Paste, and Format Multiple Headings | Dretherix | Word VBA | 2 | 02-12-2016 08:26 AM |
| Trying to find and copy all headings at the same time | WaltR | Word | 7 | 08-21-2012 03:12 PM |