Recording won't help - there is no VBA equivalent to the click-and-type of the GUI, and the answer, in general, is that it can't be done. Basically, a word processor does not cater to printing at a specific position - you would be better with a publishing package if that's what you want to do.
That said, it may be possible to achieve what you want in a specific instance, I don't know. If you can state it clearly, I or someone else can take a look at what might be possible.
Enjoy,
Tony
-------------------------------------------------------------------------------------------- We want to help you; help us to do it by reading this: Before you ask a question.
Excel VBA Training and more Help at VBAExpress[
Recording won't help
I disagree. You may record how you retrieve the specific location provided you use one search method instead of a manual scrolling and human looking.
Well, it depends what the OP means by "a specific position of MS Word Page". What I understand by a position on a page is not something one can search for - or explicitly specify in VBA (not for normal text anyway). If he really means something else, well maybe there's a solution.
Enjoy,
Tony
-------------------------------------------------------------------------------------------- We want to help you; help us to do it by reading this: Before you ask a question.
Excel VBA Training and more Help at VBAExpress[
selinsl - you need to be more specific about what you want to do. You state you want to be able to insert text at a "specific position of a MS Word Page".
1. There is no Page in Word. And, therefore, there is no fixed "position". All locations are calculated.
2. There ARE location numbers.
So, are you trying to insert text a specific location within other text? If so, yes this can be done.
Are you trying to insert text at a specific distance from the margins (top/left)? Then again, yes, this could be done.
You need to state exactly what you are trying to do.
Tony and PHV - I agree with PH in that macro recording COULD help, but it depends on what exactly is trying to be achieved. I suspect, however, that Tony is correct in that, unless otherwise stated recording a macro will not help.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.