Forum Discussion

  • sf49ers19238597 

    When the form is loaded, it executes the UserForm_Initialize event procedure

    Private Sub UserForm_Initialize()
    Me.cmbweeks.Value = ThisWorkbook.Worksheets("TEAMS_INFOS").Range("F1").Value
    End Sub

    This causes the error that you see, because the worksheet TEAMS_INFOS does not exist.

      • HansVogelaar's avatar
        HansVogelaar
        MVP

        sf49ers19238597 

        Yes, the button tries to open that form, but the form cannot be loaded because its UserForm_Initialize event procedure refers to a non-existent worksheet. See my previous reply.

Resources