The bookmark "textboxAnchor" is located just before "Chief complaint" in the correct place image below. I tried putting the anchor in different places with no luck.
It all works well except the location of the textbox sometimes moves. Here is where I want the textbox:
Here is where the textbox often ends up (above "Date of visit" instead of below it):
Any idea how I can properly locate the textbox on the page using VBA? TIA
Microsoft WordMicrosoft OfficeMicrosoft Applications
I uploaded two different images. For some reason the two images displayed are both the "correct place". I uploaded the "wrong place" hopefully below. I am trying to anchor the textbox to a bookmark with:
.Anchor.Application.ActiveDocument.Bookmarks("textboxAnchor").Range.Select
but it doesn't seem to be consistent.
After I posted this question, I added the line:
.Top = InchesToPoints(0.1)
after the Anchor line above and that seems to work at least for now.
.Anchor.Application.Active
but it doesn't seem to be consistent.
After I posted this question, I added the line:
.Top = InchesToPoints(0.1)
after the Anchor line above and that seems to work at least for now.
Thanks for your response.