Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 23
Default Bug When Try Using VBA.UserForms(FormName).Show

Hi All

I have problem when using VBA.UserForms(FormName).Show.
If I try to hide the form that showed by above code, that will cause
error :
Run-time error 402
Must close or hide topmost modal form first.

Is it bug or any other solution that can handle this problem?


Thanks,

Resant

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default Bug When Try Using VBA.UserForms(FormName).Show

I don't believe it is a bug. The point of a form being modal is that it has
the focus. Whether there is a workaround, would probably depend on the
specifics. It might require a redesign of the way you are proceeding.

--
Regards,
Tom Ogilvy


"Resant" wrote:

Hi All

I have problem when using VBA.UserForms(FormName).Show.
If I try to hide the form that showed by above code, that will cause
error :
Run-time error 402
Must close or hide topmost modal form first.

Is it bug or any other solution that can handle this problem?


Thanks,

Resant


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
Excel/VBA: cannot import, show, export userforms Daniel Excel Programming 1 November 22nd 05 05:51 PM
VBA Excel: Can't show, import or export userforms (error: &H800040 Daniel Excel Programming 2 November 22nd 05 05:36 PM
formName.Show is not working Lee Excel Programming 0 April 4th 05 07:56 PM
formName.Show Lily[_2_] Excel Programming 0 March 3rd 05 09:10 PM
UserForms soniya Excel Programming 1 April 11th 04 11:14 AM


All times are GMT +1. The time now is 09:57 PM.

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

About Us

"It's about Microsoft Excel"