Link to home
Start Free TrialLog in
Avatar of jwagman
jwagmanFlag for United States of America

asked on

How to programatically remove a paragraph marker from a selection

I am selecting a bookmark which happens to be in a table. When I select it programatically, the whole cell in the table is selected, including the paragraph marker. The paragraph marker shows up later on down the road. I can't change the bookmark name. How can I return just the text in the bookmark?
Avatar of GrahamSkan
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of jwagman


Actually, I tried both ways and neither worked. The first way, just selecting the text, still left me with those non-printing characters which show up later when I paste into an Outlook message. The second method just totally erased the bookmark selection altogether.
There is nothing in the code to change the text in the cell or to delete the bookmark. It only returns the text as you requested.