Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / September 2007

Tip: Looking for answers? Try searching our database.

selected previously selected item (bookmark)

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
OTWarrior - 30 Aug 2007 09:30 GMT
I have a drop down form field that I want the User to go back into if a
certian option is selected.
Rather than go for specific bookmark or item names, how would you select the
item you just left?

Am I right in thinking word would keep this information, as when you "Undo"
it moves the selection to where you were before?
OTWarrior - 30 Aug 2007 14:24 GMT
macropod - 01 Sep 2007 01:45 GMT
Hi,

There's probably a better way, but this 'on exit' macro seems to work:

Sub FF_Test()
With ActiveDocument
   If .FormFields("Dropdown3").Result = "3" Then .FormFields("Dropdown2").Select
End With
End Sub

It works by selecting the formfield immediately preceding the one you want to reactivate.

Cheers
Signature

macropod
[MVP - Microsoft Word]
-------------------------

>I have a drop down form field that I want the User to go back into if a
> certian option is selected.
[quoted text clipped - 3 lines]
> Am I right in thinking word would keep this information, as when you "Undo"
> it moves the selection to where you were before?
OTWarrior - 03 Sep 2007 08:45 GMT
Unfortunately it didn't reselect the drop down form field.
Thanks for the suggestion though :)
macropod - 03 Sep 2007 11:56 GMT
Hi,

That approach worked in my testing with Word 2007, but seeing as how it didn't work for you, perhaps the approach at:
http://word.mvps.org/FAQs/TblsFldsFms/GotoFormField.htm
will do a better job.

Cheers
Signature

macropod
[MVP - Microsoft Word]
-------------------------

> Unfortunately it didn't reselect the drop down form field.
> Thanks for the suggestion though :)
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.