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 2005

Tip: Looking for answers? Try searching our database.

Toolbar-Problem

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
pleasesendspamtothisadress@gmx.net - 25 Aug 2005 20:57 GMT
Hello,

In Word97 I create a Toolbar (x=Application.CommandBars.Add) with a
single Button on it (x.Controls.Add). I have further an Add-In
"addin1.dot" in the StartUp-Fodler with a module "Module1" which
contains a procedure "Proc1" itsself. If someone clicks the button the
"Proc1"-procedure should be executed.

Now there is the problem that after the first-time installation of the
toolbar the desired effect doesn't occur in most trials. So I have to
remove the Toolbar, create it again and after several times of doing
this, the Proc1-prodecure is executed. Before there is no action when
the button ic clicked.

By the way: There is no difference if I use >OnAction =
"Module1.Proc1"< or >OnAction = "Proc1"< when creating the toolbar.
Only >OnAction = "addin1.dot!Module1.Proc1"< semms not running
constantly.

Does anybody know why there is such an unpredictable behavior of the
action, so that it sometimes works and often none? What to do that it
works the right way?

Kind Regards,
Nachtigall
Word Heretic - 13 Sep 2005 01:11 GMT
G'day pleasesendspamtothisadress@gmx.net,

I find it easier to build the toolbar as a permanent member of the
template, and just show or hide it as required.

Steve Hudson - Word Heretic

steve from wordheretic.com (Email replies require payment)
Without prejudice

pleasesendspamtothisadress@gmx.net reckoned:

>Hello,
>
[quoted text clipped - 21 lines]
>Kind Regards,
>Nachtigall
 
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.