I aim to remove sections based on user input from an Excel document but I do not see a way of selecting a specific section within the Word document and removing it.
By sections I mean heading sections e.g. heading 12.4 has text and I would like the entire section (12.4) to be removed.
The code that is used when a section is deleted in Word:
Selection.Delete Unit:=wdCharacter, Count:=1
How do I make this specific to a section within the document?
Is there a way of defining the sections within the document in VBA and then calling upon them within a line of code similar to the above?