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


Hi,

I would like to kown how to unload muliple forms. I have 4 forms whic
open, and when I am in the fouth form and click exit I would like it t
close all the 4 forms.

Regards
Mar

--
Runner7
-----------------------------------------------------------------------
Runner77's Profile: http://www.excelforum.com/member.php...fo&userid=3038
View this thread: http://www.excelforum.com/showthread.php?threadid=50154

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,302
Default Unload multiple forms

Hi Mark,

Try:

In Userform4 module:
'=============
Private Sub CommandButton1_Click()
Call UnloadThem
End Sub
'<<=============

In a standard module:
'=============
Sub UnloadThem()
Dim i As Long

For i = UserForms.Count - 1 To 0 Step -1
Unload UserForms(i)
Next i

End Sub
'<<=============


---
Regards,
Norman


"Runner77" wrote in
message ...

Hi,

I would like to kown how to unload muliple forms. I have 4 forms which
open, and when I am in the fouth form and click exit I would like it to
close all the 4 forms.

Regards
Mark


--
Runner77
------------------------------------------------------------------------
Runner77's Profile:
http://www.excelforum.com/member.php...o&userid=30388
View this thread: http://www.excelforum.com/showthread...hreadid=501545



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
Multiple forms [email protected] Excel Discussion (Misc queries) 3 February 23rd 07 04:13 PM
Variables- Multiple forms andywalker[_4_] Excel Programming 3 June 25th 05 08:22 PM
Forms Unload for No reason Adrian[_7_] Excel Programming 1 July 31st 04 03:42 PM
Multiple User Forms Bob Phillips[_6_] Excel Programming 1 June 24th 04 09:58 AM
can i have VBA & forms etc load then unload? Chris A[_3_] Excel Programming 0 November 20th 03 11:14 PM


All times are GMT +1. The time now is 11:39 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"