Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Microsoft Office > Excel VBA > Excel VBA
|
Excel VBA Discuss using VBA for Excel programming.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Excel VBA section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 4th, 2005, 04:26 AM
Registered User
 
Join Date: Feb 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Dynamic modeless UserForm

I need to dynamically generate a UserForm in VBA. Also need to make it modeless. Using
VBA.UserForms.Add(TempForm.name).Show(vbModeless)
DoEvents
causes the form to appear briefly and then disappear...
Thanks in advance for any help
Robin


 
Old February 8th, 2005, 03:10 PM
Authorized User
 
Join Date: Dec 2004
Posts: 16
Thanks: 0
Thanked 1 Time in 1 Post
Default

Hi Robin,
   I just started using modeless user forms myself. Did you write code for after the form appears? It sort of sounds like the form is appearing, then Excel is reaching the end of your code, and it is disappearing. I believe modeless userforms will only remain until code execution ends. (Unlike modal userforms that will remain until there is user action) Hope I could help!


 
Old February 10th, 2005, 06:19 PM
Registered User
 
Join Date: Feb 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I was wondering if there was some way to prevent the code from running to completion like that... so I can generate multiple modeless forms dynamically so the user can do stuff in parallel...

Thanks





Similar Threads
Thread Thread Starter Forum Replies Last Post
modeless userform randomwanderer Excel VBA 3 December 3rd, 2008 08:59 AM
Userform - Modeless chrislim1 Excel VBA 10 September 20th, 2006 12:36 PM
Modeless Userform, without blue border or "x" maxpotters Excel VBA 1 March 25th, 2005 06:17 AM
MDI vs. modeless and floating windows Isen C# 3 July 9th, 2004 12:15 PM
Javascript "alert()" acts modeless cppman Javascript 2 September 16th, 2003 09:52 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.