Consulting

Results 1 to 4 of 4

Thread: MultiPage - Run-time error 35788:

  1. #1
    VBAX Newbie
    Joined
    Mar 2018
    Posts
    4
    Location

    MultiPage - Run-time error 35788:

    Can you please help me to build a VBA code.

    I need a line of VBA code, for Excel, to change which tab the user views of a multiPage. I have ActiveX 2 controls DTPickers on page 2, Index=1 and 2 controls DTPickers on page 3, Index=2 which has to be active to load the form. Please help.

    I would like to run it at initialize.
    "Run-time error 35788:
    an error occured in a call to the windows Date and Time Picker control"

  2. #2
    VBAX Sage SamT's Avatar
    Joined
    Oct 2006
    Location
    Near Columbia
    Posts
    7,814
    Location
    Please use the Go Advanced button and on that page use the Manage Attachments button to upload the Workbook.
    I expect the student to do their homework and find all the errrors I leeve in.


    Please take the time to read the Forum FAQ

  3. #3
    VBAX Newbie
    Joined
    Mar 2018
    Posts
    4
    Location
    Here is the correct answer:

    Private Sub MultiPage1_Change ()

    If MultiPage1.Value = 1 Then

    Me.DTPickerStart = Date
    Me.DTPickerEnd = Date


    ElseIf MultiPage1.Value = 2 Then

    Me.DTPicker1 = Date
    Me.DTPicker2 = Date


    End If

    End Sub

  4. #4
    VBAX Sage SamT's Avatar
    Joined
    Oct 2006
    Location
    Near Columbia
    Posts
    7,814
    Location
    That's not what you asked for
    I expect the student to do their homework and find all the errrors I leeve in.


    Please take the time to read the Forum FAQ

Tags for this Thread

Posting Permissions

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