VBA Word Code. Help in Understanding......

User avatar
Doc.AElstein
BronzeLounger
Posts: 1499
Joined: 28 Feb 2015, 13:11
Location: Hof, Bayern, Germany

VBA Word Code. Help in Understanding......

Post by Doc.AElstein »

VBA Word Code. Help in Understanding

Sorry if this is in the wrong Sub Forum
I almost posted it in Puzzles

The problem seemed very simple, At least I would have got it in Excel VBA very quickly.
I had a VBA Word code which worked on a previously Highlighted ( Selected ) text.
After, I wanted it to unselect and go to the end of the selection.

After many hours of searching , I almost have the solution.
So the code is working perfectly. I finally found it in the internet


I need help on the last bit which is really puzzling me. :hairout: :scratch: :scratch:







I really cannot figure out how StuartR got the answer before HansV
It is a while ago, long before my VBA affliction set in.

Where things different for some reason back then ?

Thanks
Alan

http://windowssecrets.com/forums/showth ... g-a-macro-(Word-2003-SP3" onclick="window.open(this.href);return false;)
I am having difficulty logging in with this account just now.
You can find me at DocAElstein also

User avatar
StuartR
Administrator
Posts: 12605
Joined: 16 Jan 2010, 15:49
Location: London, Europe

Re: VBA Word Code. Help in Understanding......

Post by StuartR »

It's a very rare occurrence
StuartR


User avatar
Doc.AElstein
BronzeLounger
Posts: 1499
Joined: 28 Feb 2015, 13:11
Location: Hof, Bayern, Germany

Re: VBA Word Code. Help in Understanding......

Post by Doc.AElstein »

So is this the second time ?
I am having difficulty logging in with this account just now.
You can find me at DocAElstein also

User avatar
Rudi
gamma jay
Posts: 25455
Joined: 17 Mar 2010, 17:33
Location: Cape Town

Re: VBA Word Code. Help in Understanding......

Post by Rudi »

It does happen that sometimes Hans needs to take a "comfort break". :grin:
Regards,
Rudi

If your absence does not affect them, your presence didn't matter.

User avatar
HansV
Administrator
Posts: 78487
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: VBA Word Code. Help in Understanding......

Post by HansV »

It's one hour earlier where Stuart lives!
Best wishes,
Hans

User avatar
Doc.AElstein
BronzeLounger
Posts: 1499
Joined: 28 Feb 2015, 13:11
Location: Hof, Bayern, Germany

Re: VBA Word Code. Help in Understanding......

Post by Doc.AElstein »

:smile: BTW Thanks for the solution.s......Both..Both! :smile:
I am having difficulty logging in with this account just now.
You can find me at DocAElstein also