Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
morning all.
I've created a user form and while it's getting close to what I want, I'm noticing that when I go to access it a subsequent time after, the combo box fields are still populated from my previous use. How do I prevent this from occurring? In my code I have Me.Hide, which acts to close the form. I don't however see anything close to the idea of me.depopulateformfieldsonclose, or me.emptyformfieldsonclose. Thank you. Oh-- this is the first form that this has happened to, and I've made 7 other forms-- albeit this is my first with combo boxes. Best. |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
unload me
regards r Il mio ultimo lavoro ... http://excelvba.altervista.org/blog/...ternative.html "Steve" wrote: morning all. I've created a user form and while it's getting close to what I want, I'm noticing that when I go to access it a subsequent time after, the combo box fields are still populated from my previous use. How do I prevent this from occurring? In my code I have Me.Hide, which acts to close the form. I don't however see anything close to the idea of me.depopulateformfieldsonclose, or me.emptyformfieldsonclose. Thank you. Oh-- this is the first form that this has happened to, and I've made 7 other forms-- albeit this is my first with combo boxes. Best. |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Instead of Me.Hide unload the form and load as and when required
'To unload Unload UserForm1 ' To load Load UserForm1 UserForm1.Show If this post helps click Yes --------------- Jacob Skaria "Steve" wrote: morning all. I've created a user form and while it's getting close to what I want, I'm noticing that when I go to access it a subsequent time after, the combo box fields are still populated from my previous use. How do I prevent this from occurring? In my code I have Me.Hide, which acts to close the form. I don't however see anything close to the idea of me.depopulateformfieldsonclose, or me.emptyformfieldsonclose. Thank you. Oh-- this is the first form that this has happened to, and I've made 7 other forms-- albeit this is my first with combo boxes. Best. |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Unload me it is then....
That appears to have worked-- thank you both R, and Jacob. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Date field in user form & Loading a user form on opening workbook | Excel Programming | |||
User form issues | Excel Programming | |||
User Form issues | Excel Programming | |||
help! user form issues; can't find subroutines; appearance issue | Excel Programming | |||
User Form Initialize Event Issues | Excel Programming |