Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Excel Forms-Can i set the modal property?


hi all,

I have 2 forms, form1 and form2, form1 has a button to go to form 2 and
vice versa.

The problem I am facing is , only once i can shuffle between these two
forms, the second if i want to see form 1 from form 2 or vice versa i
am getting this following error:
runtime error '400'
form already displayed:cant show modally.

Can anyone please tell me how to handle this error?

Thanks in advance.


--
dpt
------------------------------------------------------------------------
dpt's Profile: http://www.excelforum.com/member.php...o&userid=25861
View this thread: http://www.excelforum.com/showthread...hreadid=393763

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,298
Default Excel Forms-Can i set the modal property?


userform1.Show vbModeless

make sure that you open the first form this way, and that the buttons also
set the show method as modeless


"dpt" wrote:


hi all,

I have 2 forms, form1 and form2, form1 has a button to go to form 2 and
vice versa.

The problem I am facing is , only once i can shuffle between these two
forms, the second if i want to see form 1 from form 2 or vice versa i
am getting this following error:
runtime error '400'
form already displayed:cant show modally.

Can anyone please tell me how to handle this error?

Thanks in advance.


--
dpt
------------------------------------------------------------------------
dpt's Profile: http://www.excelforum.com/member.php...o&userid=25861
View this thread: http://www.excelforum.com/showthread...hreadid=393763


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Excel Forms-Can i set the modal property?


I thank both of u for the help.both ways it works

--
dp
-----------------------------------------------------------------------
dpt's Profile: http://www.excelforum.com/member.php...fo&userid=2586
View this thread: http://www.excelforum.com/showthread.php?threadid=39376

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Excel Forms-Can i set the modal property?


Check out the showmodal property of the form.

As for your error, you are probably trying to Load the form, can you
post your code which is giving the error. You could instead use hide
and unhide instead of unload and load, after checking the status of the
form.

Mangesh


--
mangesh_yadav
------------------------------------------------------------------------
mangesh_yadav's Profile: http://www.excelforum.com/member.php...o&userid=10470
View this thread: http://www.excelforum.com/showthread...hreadid=393763

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
Setting Property Values of Text Boxes within Forms SkyEyes Excel Programming 1 July 1st 05 07:06 PM
Forms that are modal in 97 are not modal in 2003 Old Car Excel Discussion (Misc queries) 1 April 27th 05 08:25 AM
Forms that are modal in 97 are not modal in 2003 Old Car Excel Programming 1 April 27th 05 08:25 AM
Modal Forms MJRay Excel Programming 1 March 8th 05 05:09 PM
Creating a (Modal) version of File :: New :: Contact from Excel (into Outlook) [email protected] Excel Programming 0 February 1st 05 01:53 PM


All times are GMT +1. The time now is 10:31 PM.

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"