By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,837 Members | 1,766 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,837 IT Pros & Developers. It's quick & easy.

outlook toolbar created everytime i open outlook

P: n/a
Hi
I am creating a outlook addins and in that OnConnection i am creating
a toolbar(Commandbars). the code is working fine..

But the problem is whenever i restart outlook, it is creating a new
toolbar..

Wot is the change i need to do??

Pls let me know immediately
Anushya
Nov 15 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
Hi,

you should parse the toolbar collection to see if your toolbar is allready
there. If so don't create it again.
ActiveExplorer.CommandBars.Item("MyCmdBar")

--
Daniel Falconetti
MCSE/MCT
www.falconetti.net
"Anushya" <v_*******@hotmail.com> a écrit dans le message de
news:80**************************@posting.google.c om...
Hi
I am creating a outlook addins and in that OnConnection i am creating
a toolbar(Commandbars). the code is working fine..

But the problem is whenever i restart outlook, it is creating a new
toolbar..

Wot is the change i need to do??

Pls let me know immediately
Anushya

Nov 15 '05 #2

P: n/a
Either check if your toolbar is already there and delete it or (even better)
create your toolbar as temporary (CommandBars.Add(...Temporary:=true, ...)),
this way Outlook will not persist it between the sessions.

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
"Anushya" <v_*******@hotmail.com> wrote in message
news:80**************************@posting.google.c om...
Hi
I am creating a outlook addins and in that OnConnection i am creating
a toolbar(Commandbars). the code is working fine..

But the problem is whenever i restart outlook, it is creating a new
toolbar..

Wot is the change i need to do??

Pls let me know immediately
Anushya

Nov 15 '05 #3

P: n/a
Hi v_anushya,

Try modifying your code to get the existing Outlook object to check
for the Commandbar that you have already created. Bypass the creation
process if the Commandbar already exists .

~~~~~~~~~~~~~
Tommie Carter
--
v_*******@hotmail.com (Anushya) wrote in message news:<80**************************@posting.google. com>...
Hi
I am creating a outlook addins and in that OnConnection i am creating
a toolbar(Commandbars). the code is working fine..

But the problem is whenever i restart outlook, it is creating a new
toolbar..

Wot is the change i need to do??

Pls let me know immediately
Anushya

Nov 15 '05 #4

P: n/a
Thanks Dmitry
It works fine.
Anushya
"Dmitry Streblechenko" <dm****@dimastr.com> wrote in message news:<Of**************@TK2MSFTNGP10.phx.gbl>...
Either check if your toolbar is already there and delete it or (even better)
create your toolbar as temporary (CommandBars.Add(...Temporary:=true, ...)),
this way Outlook will not persist it between the sessions.

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
"Anushya" <v_*******@hotmail.com> wrote in message
news:80**************************@posting.google.c om...
Hi
I am creating a outlook addins and in that OnConnection i am creating
a toolbar(Commandbars). the code is working fine..

But the problem is whenever i restart outlook, it is creating a new
toolbar..

Wot is the change i need to do??

Pls let me know immediately
Anushya

Nov 15 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.