![]() |
If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
![]()
OK, this seems like it should not be that big of a deal, but I am going crazy
trying to figure this out. I am running Outlook 2003 on XP Pro machine. I have created a userform that functions in all ways as it should, except when the function of the form is done or if the user hits the cancel button. I first had userform1.hide, that got rid of the form, but did not seem to reset things in the VBA side of things. I then tried, reset, quit, terminate, close. I have look up on MSND with no luck, googled this still no luck. I have Sue Moshers book on programming and cannot find what I need to do this. What I want to happen is the same thing that happens when in VBA and I click the STOP(Reset) control button. Is there a command line that I need to make this work? Or does this just not matter? Please help, I am pulling my hair out. j/k |
Ads |
#2
|
|||
|
|||
![]()
UserForm1.Hide() just make the form not visible. Any code on the form would
continue to run. You probably want to use Unload UserForm1 instead, which will terminate the form. -- Ken Slovak [MVP - Outlook] http://www.slovaktech.com Author: Professional Programming Outlook 2007. Reminder Manager, Extended Reminders, Attachment Options. http://www.slovaktech.com/products.htm "DStrong" wrote in message news ![]() OK, this seems like it should not be that big of a deal, but I am going crazy trying to figure this out. I am running Outlook 2003 on XP Pro machine. I have created a userform that functions in all ways as it should, except when the function of the form is done or if the user hits the cancel button. I first had userform1.hide, that got rid of the form, but did not seem to reset things in the VBA side of things. I then tried, reset, quit, terminate, close. I have look up on MSND with no luck, googled this still no luck. I have Sue Moshers book on programming and cannot find what I need to do this. What I want to happen is the same thing that happens when in VBA and I click the STOP(Reset) control button. Is there a command line that I need to make this work? Or does this just not matter? Please help, I am pulling my hair out. j/k |
#3
|
|||
|
|||
![]()
Ken you are the best! Thank you, I will not be going bald after all. Good day
to you. "Ken Slovak - [MVP - Outlook]" wrote: UserForm1.Hide() just make the form not visible. Any code on the form would continue to run. You probably want to use Unload UserForm1 instead, which will terminate the form. -- Ken Slovak [MVP - Outlook] http://www.slovaktech.com Author: Professional Programming Outlook 2007. Reminder Manager, Extended Reminders, Attachment Options. http://www.slovaktech.com/products.htm "DStrong" wrote in message news ![]() OK, this seems like it should not be that big of a deal, but I am going crazy trying to figure this out. I am running Outlook 2003 on XP Pro machine. I have created a userform that functions in all ways as it should, except when the function of the form is done or if the user hits the cancel button. I first had userform1.hide, that got rid of the form, but did not seem to reset things in the VBA side of things. I then tried, reset, quit, terminate, close. I have look up on MSND with no luck, googled this still no luck. I have Sue Moshers book on programming and cannot find what I need to do this. What I want to happen is the same thing that happens when in VBA and I click the STOP(Reset) control button. Is there a command line that I need to make this work? Or does this just not matter? Please help, I am pulling my hair out. j/k |
#4
|
|||
|
|||
![]()
Ken, you rock. I've been trying to figure this one out for a while. If only
Microsoft was consistent with VBA and VB, I could have just found the close method and used me.close. Ah well. At least we have experts like you. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Outlook vba errror message says Access can't find my userform | MarceepooNu | Outlook and VBA | 5 | October 8th 08 10:19 PM |
UserForm Listbox with Access Database Table data | RobLo | Outlook - Using Forms | 4 | March 9th 07 04:47 PM |
Launching an UserForm from a cutomised form | Tof | Outlook - Using Forms | 5 | January 9th 07 10:02 PM |
Build a userform on excel to copy contacts from outlook 2003 | Oggy | Outlook - General Queries | 4 | January 2nd 07 07:13 PM |
UserForm ShowModal strange behaviour | David OShea | Outlook - Using Forms | 1 | March 14th 06 06:58 PM |