G
Grant Ord
I'm having terrible trouble trying to write a macro that will delete the last
section in a document including all the content in that section.
I'm not very experienced at all in macros but I have created a routine in an
ASP page wich is based on a Word Macro that I recorded.
It opens a Word document and adds a new section at the end of it. In that
section it add hyperlinks. There may be between 1 and 20 hyperlinks and the
text and URL could be anything.
This works fine.
However, I need to create a companion macro which will remove any hyperlinks
I have added and also the section that I created.
What the documents will all have in common is a section break (which will be
either the only one or the last one). That section break and everything after
it is what I need to delete.
This seems quite simple but I just don't seem to be able to get the section
and further content selected.
Help would be appreciated.
section in a document including all the content in that section.
I'm not very experienced at all in macros but I have created a routine in an
ASP page wich is based on a Word Macro that I recorded.
It opens a Word document and adds a new section at the end of it. In that
section it add hyperlinks. There may be between 1 and 20 hyperlinks and the
text and URL could be anything.
This works fine.
However, I need to create a companion macro which will remove any hyperlinks
I have added and also the section that I created.
What the documents will all have in common is a section break (which will be
either the only one or the last one). That section break and everything after
it is what I need to delete.
This seems quite simple but I just don't seem to be able to get the section
and further content selected.
Help would be appreciated.