Outlook Custom Toolbar Button

M

mappell917

Hello - I am trying to figure out how to create a button in a custom
toolbar in Outlook (I have version 2002). I know how to drag buttons
for pre-defined outlook functions. I would like to drag a command
button in the toolbar and put my own script code behind it with a Sub
statement in the script code when the button is clicked on. Anyone
have any detailed instructions on how to do that?

Thanks,
 
S

steves-place

Hello - I am trying to figure out how to create a button in a custom
toolbar in Outlook (I have version 2002). I know how to drag buttons
for pre-defined outlook functions. I would like to drag a command
button in the toolbar and put my own script code behind it with a Sub
statement in the script code when the button is clicked on. Anyone
have any detailed instructions on how to do that?

Thanks,

try
just click the link
 
S

Sue Mosher [MVP-Outlook]

Create the macro first. You'll then be able to drag it to the toolbar from the Command window when you choose View | Toolbars | Customize.
 
M

mappell917

Okay - I see that is one way to do it but will the macros be saved with
the form? In other words - if I distribute and publish the form to
another workstation, does it have the macro stored in the form?
Originally I was thinking I could just click the control toolbox and
put a button on the form. But, I did not want to put that button on
each page of the form (since there are 2 pages) and thought it would be
better to just have it in the toolbar.

Thanks,
 
M

mappell917

Two more problems I've noticed. FIrst, it says the macro is disabled
and I'm not sure how to enable it. Second, when I drag the macro from
the command window to the toolbar it says: Project1.buttonname and I
don't want it to say Project1. in the toolbar.

Thanks again,
 
S

Sue Mosher [MVP-Outlook]

What form? What macros? The newsgroup interface you are using apparently does not quote earlier messages in the thread, making your latest message so short on detail that you risk not getting the answer you're looking for. Please take the time to quote the original message.
 
M

mappell917

This is not working. Several questions...first, can you recommend a
good newsgroup reader (I'm currently using google). Regarding my
questions with Outlook:

I have two forms I'm trying to customize. I have a New Mail form and a
Reply form. In general, I would like a button in the toolbar and when
they click on it I want it to write a text file to the disk and then
run an exe program. I know how to write the script code and I can put
a command button on the form but I don't want to have to put it on both
pages (I have created a second page with user defined fields on the
forms). So, I would like to create a toolbar with a button. I tried
creating a macro but I don't know if the macro will be saved with the
form. Also, when I click View, Toolbar, Customize and click the
Commands tab and select Macros I can then drag my Project1.PullCase
macro into the toolbar but I don't want the button to say
Project1.PullCase. If I then Right Click on the Project1.Pullcase
button in the toolbar it just shows me all my active toolbars which I
can view or hide. Also, it won't let me enable the macros.

Ideally, I would love to just be able to click the Control Toolbox and
put the button in the toolbar and then create a Sub in my script but it
doesn't seem to allow me to do that.

Thank you for your help on this.

<< Sue Mosher [MVP-Outlook] Apr 19, 11:44 am show options

Newsgroups: microsoft.public.outlook
From: "Sue Mosher [MVP-Outlook]" <[email protected]> - Find
messages by this author
Date: Tue, 19 Apr 2005 14:44:18 -0400
Local: Tues,Apr 19 2005 11:44 am
Subject: Re: Outlook Custom Toolbar Button
Reply | Reply to Author | Forward | Print | Individual Message | Show
original | Report Abuse

Right-click the button while in toolbar customization mode.
 
S

Sue Mosher [MVP-Outlook]

I use Outlook Express to read newsgroups, but there are plenty of others with different feature sets.

A toolbar button would run VBA code, not Outlook form VBScript code. That code would not be saved with the form, but would be specific to the current user.

Reread my previous post: To change the name of the button, you need to be in toolbar customization mode.
 
M

Mike Appell

If I want to distribute two forms (send new mail, reply to mail) in an
application I have that integrates with Outlook it sounds like I really
can't have a button on the toolbar with script code in the outlook form. If
I'm correct, it seems like I have to create a button on the form itself
otherwise I have to run VBA code which I'm guessing would be more difficult
to redistribute the form. Let me know if that sounds right.

Thanks

I use Outlook Express to read newsgroups, but there are plenty of others
with different feature sets.

A toolbar button would run VBA code, not Outlook form VBScript code. That
code would not be saved with the form, but would be specific to the current
user.

Reread my previous post: To change the name of the button, you need to be in
toolbar customization mode.

--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers



This is not working. Several questions...first, can you recommend a
good newsgroup reader (I'm currently using google). Regarding my
questions with Outlook:

I have two forms I'm trying to customize. I have a New Mail form and a
Reply form. In general, I would like a button in the toolbar and when
they click on it I want it to write a text file to the disk and then
run an exe program. I know how to write the script code and I can put
a command button on the form but I don't want to have to put it on both
pages (I have created a second page with user defined fields on the
forms). So, I would like to create a toolbar with a button. I tried
creating a macro but I don't know if the macro will be saved with the
form. Also, when I click View, Toolbar, Customize and click the
Commands tab and select Macros I can then drag my Project1.PullCase
macro into the toolbar but I don't want the button to say
Project1.PullCase. If I then Right Click on the Project1.Pullcase
button in the toolbar it just shows me all my active toolbars which I
can view or hide. Also, it won't let me enable the macros.

Ideally, I would love to just be able to click the Control Toolbox and
put the button in the toolbar and then create a Sub in my script but it
doesn't seem to allow me to do that.

Thank you for your help on this.

<< Sue Mosher [MVP-Outlook] Apr 19, 11:44 am show options

Newsgroups: microsoft.public.outlook
From: "Sue Mosher [MVP-Outlook]" <[email protected]> - Find
messages by this author
Date: Tue, 19 Apr 2005 14:44:18 -0400
Local: Tues,Apr 19 2005 11:44 am
Subject: Re: Outlook Custom Toolbar Button
Reply | Reply to Author | Forward | Print | Individual Message | Show
original | Report Abuse

Right-click the button while in toolbar customization mode.
 
S

Sue Mosher [MVP-Outlook]

The distribution of the form will be the same regardless. It's VBA code that's difficult to redistribute, since Outlook provides no mechanism to do that. I would put the button on the form.

--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers



Mike Appell said:
If I want to distribute two forms (send new mail, reply to mail) in an
application I have that integrates with Outlook it sounds like I really
can't have a button on the toolbar with script code in the outlook form. If
I'm correct, it seems like I have to create a button on the form itself
otherwise I have to run VBA code which I'm guessing would be more difficult
to redistribute the form. Let me know if that sounds right.

Thanks

I use Outlook Express to read newsgroups, but there are plenty of others
with different feature sets.

A toolbar button would run VBA code, not Outlook form VBScript code. That
code would not be saved with the form, but would be specific to the current
user.

Reread my previous post: To change the name of the button, you need to be in
toolbar customization mode.

--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers



This is not working. Several questions...first, can you recommend a
good newsgroup reader (I'm currently using google). Regarding my
questions with Outlook:

I have two forms I'm trying to customize. I have a New Mail form and a
Reply form. In general, I would like a button in the toolbar and when
they click on it I want it to write a text file to the disk and then
run an exe program. I know how to write the script code and I can put
a command button on the form but I don't want to have to put it on both
pages (I have created a second page with user defined fields on the
forms). So, I would like to create a toolbar with a button. I tried
creating a macro but I don't know if the macro will be saved with the
form. Also, when I click View, Toolbar, Customize and click the
Commands tab and select Macros I can then drag my Project1.PullCase
macro into the toolbar but I don't want the button to say
Project1.PullCase. If I then Right Click on the Project1.Pullcase
button in the toolbar it just shows me all my active toolbars which I
can view or hide. Also, it won't let me enable the macros.

Ideally, I would love to just be able to click the Control Toolbox and
put the button in the toolbar and then create a Sub in my script but it
doesn't seem to allow me to do that.

Thank you for your help on this.

<< Sue Mosher [MVP-Outlook] Apr 19, 11:44 am show options

Newsgroups: microsoft.public.outlook
From: "Sue Mosher [MVP-Outlook]" <[email protected]> - Find
messages by this author
Date: Tue, 19 Apr 2005 14:44:18 -0400
Local: Tues,Apr 19 2005 11:44 am
Subject: Re: Outlook Custom Toolbar Button
Reply | Reply to Author | Forward | Print | Individual Message | Show
original | Report Abuse

Right-click the button while in toolbar customization mode.
 
M

Mike Appell

Hello - okay, I remembered why I wanted to try and use a buton on a toolbar
instead but I think a button on the form will work if you can help with this
one other problem I'm facing. In general the basic problem I'm having is
when the person reads the mail it doesn't contain the button or the user
defined fields on the first page in the page frame. In other words I have
modified the Send Mail form to include some additional fields at the Message
Tab. There is also a P.2 tab where I have more user defined fields. When
the receiver opens their new mail, Outlook displays the fields: From, To:
Cc: Subject, Sent and the body of the Email at the Message tab. It's not
displaying the other user defined fields. It's also not displaying the
command button I put on the Message tab. But, it is displaying the user
defined fields and the button on the P.2 tab. I don't understand why.

I appreciate all your help. By the way, I switched to Outlook Express for
reading newsgroups. Any idea how to sort the messages so that they are
sorted in date order by the latest reply and not by the date of when the
original mesasge was posted?

Thanks again...I really appreciate it.


The distribution of the form will be the same regardless. It's VBA code
that's difficult to redistribute, since Outlook provides no mechanism to do
that. I would put the button on the form.

--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers



Mike Appell said:
If I want to distribute two forms (send new mail, reply to mail) in an
application I have that integrates with Outlook it sounds like I really
can't have a button on the toolbar with script code in the outlook form.
If
I'm correct, it seems like I have to create a button on the form itself
otherwise I have to run VBA code which I'm guessing would be more
difficult
to redistribute the form. Let me know if that sounds right.

Thanks

I use Outlook Express to read newsgroups, but there are plenty of others
with different feature sets.

A toolbar button would run VBA code, not Outlook form VBScript code. That
code would not be saved with the form, but would be specific to the
current
user.

Reread my previous post: To change the name of the button, you need to be
in
toolbar customization mode.

--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers



This is not working. Several questions...first, can you recommend a
good newsgroup reader (I'm currently using google). Regarding my
questions with Outlook:

I have two forms I'm trying to customize. I have a New Mail form and a
Reply form. In general, I would like a button in the toolbar and when
they click on it I want it to write a text file to the disk and then
run an exe program. I know how to write the script code and I can put
a command button on the form but I don't want to have to put it on both
pages (I have created a second page with user defined fields on the
forms). So, I would like to create a toolbar with a button. I tried
creating a macro but I don't know if the macro will be saved with the
form. Also, when I click View, Toolbar, Customize and click the
Commands tab and select Macros I can then drag my Project1.PullCase
macro into the toolbar but I don't want the button to say
Project1.PullCase. If I then Right Click on the Project1.Pullcase
button in the toolbar it just shows me all my active toolbars which I
can view or hide. Also, it won't let me enable the macros.

Ideally, I would love to just be able to click the Control Toolbox and
put the button in the toolbar and then create a Sub in my script but it
doesn't seem to allow me to do that.

Thank you for your help on this.

<< Sue Mosher [MVP-Outlook] Apr 19, 11:44 am show options

Newsgroups: microsoft.public.outlook
From: "Sue Mosher [MVP-Outlook]" <[email protected]> - Find
messages by this author
Date: Tue, 19 Apr 2005 14:44:18 -0400
Local: Tues,Apr 19 2005 11:44 am
Subject: Re: Outlook Custom Toolbar Button
Reply | Reply to Author | Forward | Print | Individual Message | Show
original | Report Abuse

Right-click the button while in toolbar customization mode.
 
S

Sue Mosher [MVP-Outlook]

Did you click the Edit Read Layout button to create a layout for the user reading the message?
 
M

Mike Appell

Got it...Thank you so much for you help. I really appreciate it.

Mike


Did you click the Edit Read Layout button to create a layout for the user
reading the message?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top