View Single Post
 
Old 03-24-2014, 01:14 PM
donaldadams1951 donaldadams1951 is offline Windows XP Office 2010 32bit
Advanced Beginner
 
Join Date: Dec 2013
Location: San Francisco Bay Area
Posts: 37
donaldadams1951 is on a distinguished road
Default Where in the code am I deleteing the Section Break(Next Page)?

When I insert my report into the document, I am inserting a Section Break(Continuous) then inserting my report then inserting another Section Break(Continuous). Then I protect the report I inserted by protecting the section it is in.

That works fine. Now if I remove the section that contains the report it removes the new section I inserted but also converts the Section Break(Next Page) to a Section Break(Continuous).

I do not see in the snippet why it is doing that. Where in the snippet that deletes the section that has my report do I put the new code that stores the Section Break type in the previous section and puts it back when finished. I'm sorry but I guess I am too inexperienced to see where I should do that in the "GetAndRemoveSectionByInstanceNumber" sub-routine.
Reply With Quote