onction property of commandbar

  • Thread starter Thread starter cmoietvous
  • Start date Start date
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.
 
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?
 
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.
 
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: (e-mail address removed)...
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.
 
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: (e-mail address removed)...
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.
 
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: (e-mail address removed)...
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: (e-mail address removed)...
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.
 
You would need to copy the VBAProject.otm file to the user's %userprofile% folders, replacing any existing VBAProject.otm file and thus blowing away any of the user's existing macros. Does that help you understand why VBA code is not intended to be deployed?
--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers



cmoietvous said:
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: (e-mail address removed)...
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
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: (e-mail address removed)...
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?

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.
 
Yes, thanks you very much for this explanation. I understood very well what
you said.





"Sue Mosher [MVP-Outlook]" <[email protected]> a écrit dans le message
de news: (e-mail address removed)...
You would need to copy the VBAProject.otm file to the user's %userprofile%
folders, replacing any existing VBAProject.otm file and thus blowing away
any of the user's existing macros. Does that help you understand why VBA
code is not intended to be deployed?
--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers



cmoietvous said:
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: (e-mail address removed)...
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
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: (e-mail address removed)...
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?

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.
 
Back
Top