K
Ken McAndrew
Using Outlook 2003, XP Pro. I have an appointment form that I am trying to
customize to do some additional functions on the save/close and delete
buttons. I figure the easiest way to do this is to create macros and attach
command buttons to them. I've got all that working, but I've noticed the
catch of those buttons appearing in all my Outlook forms, which I'd like to
stop. So I'm thinking to dynamically generate them.
What I can't find is a good code sample that's in the script editor with
VBScript (since I assume it will need to use Item_Open and Item_Close) that
creates a button and assigns the macro command to it. Does anyone have a
good sample of this kind of function? Or, is there a way to override the
functions of the save/close and delete buttons on the custom form with what
I want? (I have to access a SQL database, which code I've got done.)
Thanks
customize to do some additional functions on the save/close and delete
buttons. I figure the easiest way to do this is to create macros and attach
command buttons to them. I've got all that working, but I've noticed the
catch of those buttons appearing in all my Outlook forms, which I'd like to
stop. So I'm thinking to dynamically generate them.
What I can't find is a good code sample that's in the script editor with
VBScript (since I assume it will need to use Item_Open and Item_Close) that
creates a button and assigns the macro command to it. Does anyone have a
good sample of this kind of function? Or, is there a way to override the
functions of the save/close and delete buttons on the custom form with what
I want? (I have to access a SQL database, which code I've got done.)
Thanks