Consulting

Results 1 to 2 of 2

Thread: intializing a userform

  1. #1
    VBAX Mentor
    Joined
    Jun 2005
    Posts
    374
    Location

    intializing a userform

    hello
    i am using a calendar userform.i want the userform
    open on january 1900.could it be done?
    moshe

  2. #2
    Site Admin
    Jedi Master
    VBAX Guru Jacob Hilderbrand's Avatar
    Joined
    Jun 2004
    Location
    Roseville, CA
    Posts
    3,712
    Location
    Try this:
    Option Explicit
     
    Private Sub UserForm_Initialize()
        Me.Calendar1.Value = DateSerial(1900, 1, 1)
    End Sub

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •