LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 20
Default Basic UserForm question - please help

Please help if you can. In my Excel macro, Sheet 1 determines if value 1 is greater than value 2 and if so, calls UserForm1. UserForm1 is a simple form, with some text and an OK button. Clicking the OK button closes the UserForm. So far, so good. When UserForm1 opens up, I need it to stay on the screen until a user clicks the OK button. While it is up, I need the rest of the macro to function. If I highlight UserForm1 and view code, I get my code:

Private Sub UserForm1_Activate()
MsgBox "This is a test - hello"
'Place code here that or call another sub rotine from here
End Sub

Problem is, this refuses to show me the message box. What I am doing wrong? Why won't the UserForm1_Activate() work?

Doug
 
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
Basic question...sorry jen the runner Excel Worksheet Functions 11 September 18th 07 12:12 AM
Visual Basic System Error-Userform GENEF Excel Discussion (Misc queries) 1 December 22nd 04 05:05 PM
Too Basic A Question dave Excel Programming 6 October 26th 03 03:57 PM
Basic VBA question Henrik[_2_] Excel Programming 2 October 25th 03 12:23 AM
Basic Userform Controlsource question Kevin Excel Programming 0 August 7th 03 11:04 PM


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