View Single Post
 
Old 04-22-2025, 02:46 AM
gcp gcp is offline Windows 11 Office 2021
Novice
 
Join Date: Mar 2025
Posts: 17
gcp is on a distinguished road
Default

Hi Chaps
I can't understand how such a simple task needs to be coded in such a complex way. I wrote a WordPerfect macro for this over ten years ago and, while not elegant, it was simple to write and worked as needed. Thanks Andrew but the point of my exercise is to try and understand and learn VBA so that I can perform simple tasks, that's why I'm struggling along with VBA. I have achieved a few simple macros with Paul's kind help.
DOCPROPERTY doesn't suit because I start with a standard precedent for all circumstances and I prefer not to insert field braces where they might not be needed. Bookmarks aren't as obvious. Same with Quick Parts. I start with that standard precedent with bookmarks in it that are irrelevant in many cases, but not intrusive.
What are the complications that make it so hard to select text after a bookmark and then move it to another place, or places. For other changes I suppose that it is inelegant to simply go to a bookmarked "she" and delete the "s", or to amend "my wife" to "my husband" but that is simply done. I have had to abandon assigning selected text to variables and will try to code line by line, step by step, and see how it goes. Thanks for time you have clearly put into your responses, but you assume a level of sophistication that is beyond a Swannies supporter.
Reply With Quote