#1
|
|||
|
|||
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. |
#2
|
||||
|
||||
hi caddcop,
Quote:
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#3
|
|||
|
|||
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. |
#4
|
||||
|
||||
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] |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Help with Document Properties Prompt Macro | KJJ | Word VBA | 14 | 11-10-2016 08:18 PM |
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 |