I have a userform that contains nine checkboxes, each corresponding with an Outline Level 1 heading (style Heading11) within the document.
I want to be able to tick any number of these checkboxes and have the selected heading(s) & the text within that 'section'/up until the next Heading11, deleted from the document.
For example, if I tick CbxISR and CbxPPL the document will be searched for Heading11 text "Industrial Special Risk" and "Public Liability".
I tried to adapt the code found in THIS thread, which uses the .Find
method, but it is specific to searching just one non-variable text value.
How can I work with checkboxes that are ticked?