tahiraaslam
September 22nd, 2001, 07:01 AM
I designed a form in outlook 2000. Its a simple form with 3 combo boxes and one command button. and its only purpose is to display whole emails from my "inbox" folder.
I wrote code in vbscript using "view code" option and when i clicked on command button, It displayed all my emails as i wished.
then i decided to do same thing in visual basic editor,using VBA code.I went in Tools->visual basic editor and wrote the code and it worked fine.but then came the problem.this is a macro and i want to use it under the command button on outlook form.
I add this macro on outlook toolbar and when i clicked it , it worked. But that's not what i wanted. I want it to run whenever i click command button, which is on outlook form ..can anyone help me ??
I wrote code in vbscript using "view code" option and when i clicked on command button, It displayed all my emails as i wished.
then i decided to do same thing in visual basic editor,using VBA code.I went in Tools->visual basic editor and wrote the code and it worked fine.but then came the problem.this is a macro and i want to use it under the command button on outlook form.
I add this macro on outlook toolbar and when i clicked it , it worked. But that's not what i wanted. I want it to run whenever i click command button, which is on outlook form ..can anyone help me ??