Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 63
Default Form Doesn't Disappear

I have a form with option buttons on it. In the code for one of the option
buttons, there are just two commands, set up like this:

Me.Hide
Macro1

Macro1 turns screen updating off and then does a lot of other things. But
the form doesn't disappear before Macro1 starts. Why is that? I don't want
to look at the form frozen on the screen while the macro is running. I want
it to disappear as soon as I pick the option.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Form Doesn't Disappear

Try running the macro after the code that shows the form

Userform1.Show
Macro1

not in the userform code

--

HTH

RP

"Stratuser" wrote in message
...
I have a form with option buttons on it. In the code for one of the

option
buttons, there are just two commands, set up like this:

Me.Hide
Macro1

Macro1 turns screen updating off and then does a lot of other things. But
the form doesn't disappear before Macro1 starts. Why is that? I don't

want
to look at the form frozen on the screen while the macro is running. I

want
it to disappear as soon as I pick the option.



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 16
Default Form Doesn't Disappear

try
Unload.Me
before running Macro1
"Stratuser" wrote:

I have a form with option buttons on it. In the code for one of the option
buttons, there are just two commands, set up like this:

Me.Hide
Macro1

Macro1 turns screen updating off and then does a lot of other things. But
the form doesn't disappear before Macro1 starts. Why is that? I don't want
to look at the form frozen on the screen while the macro is running. I want
it to disappear as soon as I pick the option.

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
Why does my data disappear? Painthorse Charts and Charting in Excel 0 September 11th 07 04:58 PM
why workbook disappear ? fathy Excel Worksheet Functions 1 March 21st 07 05:52 PM
I can't get my formulas to disappear jalbert1975 Excel Discussion (Misc queries) 2 November 15th 06 04:45 PM
New formula ## does not disappear Tink Excel Discussion (Misc queries) 1 June 9th 05 02:22 AM
Add-Ins disappear Gates72 Setting up and Configuration of Excel 0 December 2nd 04 04:06 PM


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