![]() ![]() ![]() This may seem picky, but it is crucial to understanding the object model, and THAT is crucial to understanding what the bleep is going on. The next page comes FROM the action of creating the Section. You are not creating a Section in the next page. Selection.InsertBreak Type:=wdSectionBreakNextPageThis is not correct. Thanks in advance RE: Different Headers in different pages using macro in word SkipVought (Programmer) 5 Sep 06 08:31 Selection.TypeText Text:="TEST STEP : " & teststepĪ = wdSeekMainDocument Selection.Delete Unit:=wdCharacter, count:=1 _Ī = wdOutlineView ThenĪ = wdPrintViewĪ = wdSeekCurrentPageHeader 'Making sure the page layout is printview Selection.InsertBreak Type:=wdSectionBreakNextPage If I do it directly without macro, I am able to do it. ![]() It is making the changes in section 1 and not in section 2. But when I am trying to add a new header in the 3rd page, that is, if the first 2 pages are section 1 and 3rd page is section 2. I am trying to create a macro which gives me different headers on different pages. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |