onction property of commandbar

C

cmoietvous

Hi everybody,
I try to create a button on Outlook 2002 to launch a custom forms. I have a
macro to realise this and everything that 's all right except to launch what
I do. In fact the value's onaction property isn't correct and is :

..onaction=="Application.ActiveExplorer.CurrentFolder.Items.Add(" & Chr(34) &
"IPM.Note" & Chr(34) & ").Display"

But the following macro is OK:

sub test()
Application.ActiveExplorer.CurrentFolder.Items.Add("IPM.Note").Display
End test


Of course the following onaction property is OK
..onaction="test"

But I don't want to do that!

Thanks you for your help.
 
C

cmoietvous

becaause I would like to install this button on many PC and I don't why can
I do it automaticaly by a script. More over a macro in Win98 doesnt't exist.


"Sue Mosher [MVP-Outlook]" <[email protected]> a écrit dans le message
de %[email protected]...
Since that's the right technique, why don't you want to use it?
 
S

Sue Mosher [MVP-Outlook]

The solution is to create a COM add-in that both creates the button and provides the code for the button's Click event.

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



cmoietvous said:
becaause I would like to install this button on many PC and I don't why can
I do it automaticaly by a script. More over a macro in Win98 doesnt't exist.


"Sue Mosher [MVP-Outlook]" <[email protected]> a écrit dans le message
de %[email protected]...
Since that's the right technique, why don't you want to use it?

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



cmoietvous said:
Hi everybody,
I try to create a button on Outlook 2002 to launch a custom forms. I have
a
macro to realise this and everything that 's all right except to launch
what
I do. In fact the value's onaction property isn't correct and is :

.onaction=="Application.ActiveExplorer.CurrentFolder.Items.Add(" & Chr(34)
&
"IPM.Note" & Chr(34) & ").Display"

But the following macro is OK:

sub test()
Application.ActiveExplorer.CurrentFolder.Items.Add("IPM.Note").Display
End test


Of course the following onaction property is OK
.onaction="test"

But I don't want to do that!

Thanks you for your help.
 
C

cmoietvous

Yes but to realise this, I must buy the COM add in sdk! Shall I? is there a
free SDK to do that ?


"Sue Mosher [MVP-Outlook]" <[email protected]> a écrit dans le message
de news: [email protected]...
The solution is to create a COM add-in that both creates the button and
provides the code for the button's Click event.

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



cmoietvous said:
becaause I would like to install this button on many PC and I don't why
can
I do it automaticaly by a script. More over a macro in Win98 doesnt't
exist.


"Sue Mosher [MVP-Outlook]" <[email protected]> a écrit dans le
message
de %[email protected]...
Since that's the right technique, why don't you want to use it?

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



cmoietvous said:
Hi everybody,
I try to create a button on Outlook 2002 to launch a custom forms. I have
a
macro to realise this and everything that 's all right except to launch
what
I do. In fact the value's onaction property isn't correct and is :

.onaction=="Application.ActiveExplorer.CurrentFolder.Items.Add(" &
Chr(34)
&
"IPM.Note" & Chr(34) & ").Display"

But the following macro is OK:

sub test()
Application.ActiveExplorer.CurrentFolder.Items.Add("IPM.Note").Display
End test


Of course the following onaction property is OK
.onaction="test"

But I don't want to do that!

Thanks you for your help.
 
S

Sue Mosher [MVP-Outlook]

No, there are no free tools to create COM add-ins. There are, however, free ways to launch a custom form. See http://www.outlookcode.com/d/launchform.htm

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



cmoietvous said:
Yes but to realise this, I must buy the COM add in sdk! Shall I? is there a
free SDK to do that ?


"Sue Mosher [MVP-Outlook]" <[email protected]> a écrit dans le message
de news: [email protected]...
The solution is to create a COM add-in that both creates the button and
provides the code for the button's Click event.
cmoietvous said:
becaause I would like to install this button on many PC and I don't why
can
I do it automaticaly by a script. More over a macro in Win98 doesnt't
exist.


"Sue Mosher [MVP-Outlook]" <[email protected]> a écrit dans le
message
de %[email protected]...
Since that's the right technique, why don't you want to use it?

cmoietvous said:
Hi everybody,
I try to create a button on Outlook 2002 to launch a custom forms. I have
a
macro to realise this and everything that 's all right except to launch
what
I do. In fact the value's onaction property isn't correct and is :

.onaction=="Application.ActiveExplorer.CurrentFolder.Items.Add(" &
Chr(34)
&
"IPM.Note" & Chr(34) & ").Display"

But the following macro is OK:

sub test()
Application.ActiveExplorer.CurrentFolder.Items.Add("IPM.Note").Display
End test


Of course the following onaction property is OK
.onaction="test"

But I don't want to do that!

Thanks you for your help.
 
C

cmoietvous

Yes, I know it, it was I write in my first mail (test function), but it
isn't what I do because I want to deploy this with a script and I don't know
the way to install a Outlook macro with a script.

Thanks you for your help.


"Sue Mosher [MVP-Outlook]" <[email protected]> a écrit dans le message
de news: [email protected]...
No, there are no free tools to create COM add-ins. There are, however, free
ways to launch a custom form. See
http://www.outlookcode.com/d/launchform.htm

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



cmoietvous said:
Yes but to realise this, I must buy the COM add in sdk! Shall I? is there
a
free SDK to do that ?


"Sue Mosher [MVP-Outlook]" <[email protected]> a écrit dans le
message
de news: [email protected]...
The solution is to create a COM add-in that both creates the button and
provides the code for the button's Click event.
cmoietvous said:
becaause I would like to install this button on many PC and I don't why
can
I do it automaticaly by a script. More over a macro in Win98 doesnt't
exist.


"Sue Mosher [MVP-Outlook]" <[email protected]> a écrit dans le
message
de %[email protected]...
Since that's the right technique, why don't you want to use it?

cmoietvous said:
Hi everybody,
I try to create a button on Outlook 2002 to launch a custom forms. I
have
a
macro to realise this and everything that 's all right except to launch
what
I do. In fact the value's onaction property isn't correct and is :

.onaction=="Application.ActiveExplorer.CurrentFolder.Items.Add(" &
Chr(34)
&
"IPM.Note" & Chr(34) & ").Display"

But the following macro is OK:

sub test()
Application.ActiveExplorer.CurrentFolder.Items.Add("IPM.Note").Display
End test


Of course the following onaction property is OK
.onaction="test"

But I don't want to do that!

Thanks you for your help.
 
Top