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: 16
Default User Form Initialize Event Issues

Hi,
Trying to show a user form, but a few of the events in the initialize
routine aren't firing as I intend. Here is the code:

To display the user form and trigger the intialize event:
frmSettings.Show

The initialize sequence:
Private Sub frmSettings_Initialize()
btnBusinessPlan = True '* an option button within a frame
frameStartingMonth.Visible = False '*a frame that houses the
combo box cboStartingMonth
cboStartingMonth.Visible = False
txtSourceRecordsFile.Value = Sheet2.Range("e1").Value
Image2.Left = frmSettings.Width / 2 - Image2.Width / 2
lblTitle1.Left = frmSettings.Width / 2 - lblTitle1.Width / 2
lblTitle2.Left = frmSettings.Width / 2 - lblTitle2.Width / 2
End Sub

The first two lines in the initialize sequence are not working
(indicated with an *). However, when I use these same commands in
other events, they work just fine. The other lines work just fine,
which proves that the initialize sequence is running. Any ideas as to
why the first two lines fail in this context?

Thanks,
Randy Eastland

 
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
keyboard event in user form gpjb Excel Programming 3 June 27th 05 11:13 PM
Closing user form in Initialize macro? Don Wiss Excel Programming 4 April 20th 05 08:22 AM
UserForm Initialize event doesn't fire reliably RB Smissaert Excel Programming 13 February 16th 05 01:39 AM
user form-on open event? keydown event? FSt1[_3_] Excel Programming 2 August 5th 04 02:26 PM
Initialize event doesn't work Pop Excel Programming 1 May 19th 04 12:02 PM


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