Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Form wont hide

It looks like you are not ever allowing your events to terminate - probably
why you are having memory problems as well.

--
Regards,
Tom Ogilvy



"Chad" wrote in message
...
I'm having trouble with my form not hiding. I think it has something to

do with screenupdating turned off, but that command comes after the hide
command. Here's my code:

I run this macro which calls up the form:

Sub Face_Sheet()
UserForm2.Show
End Sub

The form has a button which runs the report and this is the macro:

Sub main(printall As Variant, officeloc As Variant)

Dim Rng1, Rng2, col, i As Integer
Dim LRow, RowSkills, RowAvail As Integer

UserForm2.Hide
Unload UserForm2

If printall = 1 Then Sheets(officeloc).Select: Columns("a:ee").Delete

Application.ScreenUpdating = False
...code continues

The problem is that the form remains on the screen and doesn't disapear.

How can I make it go away?

Thanks



  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9
Default Form wont hide

Okay, how do I terminate my subs?
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
Hide or display worksheets based on form Shawnn Excel Discussion (Misc queries) 3 December 31st 08 10:58 PM
how to hide a form button in a worksheet angie ng Excel Discussion (Misc queries) 1 May 21st 07 01:08 PM
Date format from excel to CVS file wont. Change in CVS wont stay. Fish''s Mermaid Excel Worksheet Functions 1 October 14th 06 12:28 AM
How do I hide zero values but keep currency format in P.O. form? Mamarita New Users to Excel 4 February 9th 06 11:53 PM
Hide minimise, maximise, and close buttons on form Gordon Garnsey Excel Programming 3 March 1st 04 02:41 PM


All times are GMT +1. The time now is 05:27 AM.

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"