Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 06-10-2011, 04:39 AM
caddcop caddcop is offline Prompt for Selection Point in document Windows 2K Prompt for Selection Point in document Office 2003
Novice
Prompt for Selection Point in document
 
Join Date: Jun 2011
Posts: 2
caddcop is on a distinguished road
Default Prompt for Selection Point in document

We are using a tool that uses bookmarks as placeholders. To use the bookmarks tool in Word, you have to place the cursor in the correct location and then open the bookmarks dialog box and type in the name and press the add button. If you forget to correctly place the cursor, there is no way to move the bookmark.



I am working on a macro to allow users to select the name of the bookmark from a dropdown menu and then want to prompt them to click where to place the bookmark. I envision a button labeled "Select Insertion Point" and when pressed, closes the dialog box and waits for the user to click with the mouse button and then, with the cursor at the new location, the dialog reopens for the user to select the bookmark and press the Insert button. With such a tool, it would take minutes to make a new template.

Does anyone have an example macro that will prompt a user to click in a document and will return the point as a range?

I am also open to alternative ideas...

Last edited by caddcop; 06-10-2011 at 11:16 AM. Reason: Add more information.
Reply With Quote
  #2  
Old 06-13-2011, 05:06 PM
macropod's Avatar
macropod macropod is online now Prompt for Selection Point in document Windows 7 32bit Prompt for Selection Point in document Office 2007
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,963
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

hi caddcop,
Quote:
If you forget to correctly place the cursor, there is no way to move the bookmark.
If you insert a bookmark incorrectly, you can simply select the correct range and, using Insert|Bookmark, re-assign the bookmark to the new range.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #3  
Old 06-14-2011, 03:28 AM
caddcop caddcop is offline Prompt for Selection Point in document Windows 2K Prompt for Selection Point in document Office 2003
Novice
Prompt for Selection Point in document
 
Join Date: Jun 2011
Posts: 2
caddcop is on a distinguished road
Default

I come from a 'CAD"-centric environment where a lot of our tools and macros are setup to pick a tool and then pick where to use it. To have an option to work that way in other software would seem very natural to us.
I was hoping for an example that I could adapt where I could select the name of a bookmark from a list - not necessarily of existing bookmarks, in fact, in most cases it would be a list of bookmarks to be created - and then prompt the user to click in a cell in a table that indicates where the bookmark is to be placed.
Reply With Quote
  #4  
Old 06-14-2011, 05:45 PM
macropod's Avatar
macropod macropod is online now Prompt for Selection Point in document Windows 7 32bit Prompt for Selection Point in document Office 2007
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,963
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Hi caddcop,

You could use a template with a suite of pre-defined bookmarks all assigned to, say, the start of the document's first page header (just to prevent accidental deletion). You could then select wherever you want to use one of these bookmarks in the body of the document, then use Insert|Bookmark to re-assign it as described earlier. The drawback is that Word won't readily show you which bookmarks have/have not been re-assigned or where they've been re-assigned to. If that doesn't meet you needs, you'd have to create and attach a useform to the document's template and have the code attached to the userform provide a list of available (unused) bookmarks from which to select. Even that is likely to be klunky to use.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Prompt for Selection Point in document Help with Document Properties Prompt Macro KJJ Word VBA 14 11-10-2016 08:18 PM
Prompt for Selection Point in document Word - Links point to template rather than new document mconigol Word 1 04-01-2011 03:29 PM
Microsoft Power Point 2004 to Office Power Point 2007 chuff PowerPoint 0 03-20-2011 01:23 PM
Problem with document map--cannot make selection Darren2 Word 1 03-14-2011 03:20 PM
Document selection procedure kennethc Word 0 09-15-2010 02:56 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 06:54 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft