Results 1 to 2 of 2
Thread: Popup Toolbar (Word 2000)
2003-04-25, 16:11 #1
- Join Date
- Apr 2003
- Salt Lake City, Utah, USA
- Thanked 0 Times in 0 Posts
Popup Toolbar (Word 2000)
You know how when you select a picture in Word, the Picture toolbar displays? and then disappears when you move off of the toolbar? I want to create a toolbar like that when the user is in a table. Anyone know how to do that?
2003-04-25, 17:25 #2
- Join Date
- Feb 2001
- Silicon Valley, USA
- Thanked 93 Times in 89 Posts
Re: Popup Toolbar (Word 2000)
I don't know if a simple way. You can write a VBA program to detect when the user has clicked in a table, but you basically need to be "watching" all the time.
If you search here (Word & VB boards) and in the online help for the Application event WindowSelectionChange, you can find some examples of how to monitor the selection.
Then, you simply need to check whether the user is in a table:
<pre>If Selection.Information(wdWithInTable) Then</pre>
and show the toolbar:
<pre> CommandBars("MyTableBar").Visible = True</pre>
and if the user is NOT in a table, you hide it:
CommandBars("MyTableBar").Visible = False
There's probably a more efficient way to do this, but if this works, you then can take it to the next level.