Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 144
Default UserForm Not Visible on Load???

This is what I have for my UserForm. However, it is still not visible when I
open the file. Can someone please help me with this. I have review the
forum and tried and untried several suggestions but still no form. Thank you
in advance for any help you can provide.


Private Sub UserForm1_Initialize()
Load UserForm1
UserForm1.Show
Me.FormDate.Text = Format(Date, "mm-dd-yyyy")

End Sub
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8,520
Default UserForm Not Visible on Load???

In VBE (Visual Basic Editor) from the left treeview search for the workbook
name and click on + to expand it. Within that you should see the following

VBAProject(Your_Filename)
Microsoft Excel Objects
Sheet1(Sheet1)
Sheet2(Sheet2)
Sheet3(Sheet3)
This Workbook

Double click 'This WorkBook' and paste the below code to the right code pane.
'
Private Sub Workbook_Open()
Load UserForm1
UserForm1.Show
End Sub

'Place the below code in User form Initialize event
Private Sub UserForm1_Initialize()
Me.FormDate.Text = Format(Date, "mm-dd-yyyy")
End Sub


If this post helps click Yes
---------------
Jacob Skaria


"TotallyConfused" wrote:

This is what I have for my UserForm. However, it is still not visible when I
open the file. Can someone please help me with this. I have review the
forum and tried and untried several suggestions but still no form. Thank you
in advance for any help you can provide.


Private Sub UserForm1_Initialize()
Load UserForm1
UserForm1.Show
Me.FormDate.Text = Format(Date, "mm-dd-yyyy")

End Sub

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 144
Default UserForm Not Visible on Load???

This worked! Thank you very much! : )

"Jacob Skaria" wrote:

In VBE (Visual Basic Editor) from the left treeview search for the workbook
name and click on + to expand it. Within that you should see the following

VBAProject(Your_Filename)
Microsoft Excel Objects
Sheet1(Sheet1)
Sheet2(Sheet2)
Sheet3(Sheet3)
This Workbook

Double click 'This WorkBook' and paste the below code to the right code pane.
'
Private Sub Workbook_Open()
Load UserForm1
UserForm1.Show
End Sub

'Place the below code in User form Initialize event
Private Sub UserForm1_Initialize()
Me.FormDate.Text = Format(Date, "mm-dd-yyyy")
End Sub


If this post helps click Yes
---------------
Jacob Skaria


"TotallyConfused" wrote:

This is what I have for my UserForm. However, it is still not visible when I
open the file. Can someone please help me with this. I have review the
forum and tried and untried several suggestions but still no form. Thank you
in advance for any help you can provide.


Private Sub UserForm1_Initialize()
Load UserForm1
UserForm1.Show
Me.FormDate.Text = Format(Date, "mm-dd-yyyy")

End Sub

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
Userform does not load Ozgur Pars[_2_] Excel Programming 1 April 13th 07 10:35 PM
A save/load txt UserForm Abe[_4_] Excel Programming 3 July 27th 06 10:16 PM
LOAD userform JohnTheTemp Excel Programming 2 September 9th 05 12:45 AM
How Do I Load A ComboBox On A UserForm Minitman[_4_] Excel Programming 4 October 26th 04 07:40 PM
Load a Userform Nick Excel Programming 1 September 10th 03 03:24 PM


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