Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default Userform question

Something strange is happening in a code with userforms. I am developing
some code which uses a few userforms. A second userform is called from a
command button on the first userform. Then while in the middle of processing
code from that second userform, program control is suddenly transferred to a
Listbox_click code of the first Userform without any apparent reason. Anyone
have a clue as to what could be causing that ?
Thanks,
JH


  #2   Report Post  
Posted to microsoft.public.excel.programming
bob bob is offline
external usenet poster
 
Posts: 52
Default Userform question

Are you hiding or unloading the first form before loading
and showing the second form?

Try the following

....button clicked...
unload me 'or you could use me.hide
FormNumber2.show

-----Original Message-----
Something strange is happening in a code with userforms.

I am developing
some code which uses a few userforms. A second userform

is called from a
command button on the first userform. Then while in the

middle of processing
code from that second userform, program control is

suddenly transferred to a
Listbox_click code of the first Userform without any

apparent reason. Anyone
have a clue as to what could be causing that ?
Thanks,
JH


.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default Userform question

thanks Bob, i had just also discovered it myself, cheers
JH

"bob" wrote in message
...
Are you hiding or unloading the first form before loading
and showing the second form?

Try the following

...button clicked...
unload me 'or you could use me.hide
FormNumber2.show

-----Original Message-----
Something strange is happening in a code with userforms.

I am developing
some code which uses a few userforms. A second userform

is called from a
command button on the first userform. Then while in the

middle of processing
code from that second userform, program control is

suddenly transferred to a
Listbox_click code of the first Userform without any

apparent reason. Anyone
have a clue as to what could be causing that ?
Thanks,
JH


.



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Userform question Brad Excel Discussion (Misc queries) 4 March 15th 10 04:43 PM
Question regarding UserForm TotallyConfused Excel Discussion (Misc queries) 0 September 3rd 09 09:38 PM
Userform question Anthony Excel Worksheet Functions 4 June 27th 08 04:26 PM
userform question Rob Bovey Excel Programming 0 August 25th 03 11:43 PM
userform question David Goodall Excel Programming 0 August 25th 03 07:10 PM


All times are GMT +1. The time now is 06:35 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"