VBA excel search with two criteria and update

Please I am having problem with userform to activate a sheet then searching with two criteria that is by year and month to populate other fields and then update.Kindly assist me.Thank you

Private Sub ComboBox2_Change()
Dim x As Integer
‘ Loop through months (1 to 12) and add them to ComboBox2
With Me.ComboBox2
For x = 1 To 12
.AddItem MonthName(x)
Next x
End With
End Sub

Private Sub CommandButton1_Click()
Dim targetsheet As String
targetsheet = ComboBox1.Value
‘ Check if targetsheet is empty, exit the sub if true
If targetsheet = “” Then
Exit Sub
End If

With Worksheets(targetsheet)
    Dim lastRow As Long
    ' Find the last row in column 1
    lastRow = .Cells(.Rows.Count, 1).End(xlUp).Row
    ' Fill in values from textboxes and combobox into the next row
    .Cells(lastRow + 1, 1).Value = TextBox3.Value
    .Cells(lastRow + 1, 2).Value = ComboBox2.Value
    .Cells(lastRow + 1, 3).Value = TextBox1.Value
    .Cells(lastRow + 1, 4).Value = TextBox2.Value
    .Cells(lastRow + 1, 5).Value = TextBox4.Value
    .Cells(lastRow + 1, 6).Value = TextBox5.Value
    .Cells(lastRow + 1, 7).Value = TextBox6.Value
    .Cells(lastRow + 1, 10).Value = TextBox7.Value
    .Cells(lastRow + 1, 12).Value = TextBox8.Value
    .Cells(lastRow + 1, 13).Value = TextBox9.Value
    .Cells(lastRow + 1, 14).Value = TextBox10.Value
    MsgBox "Data was added successfully"
    ' Clear the values of input fields after data is added
    TextBox3.Value = ""
    ComboBox2.Value = ""
    TextBox1.Value = ""
    TextBox2.Value = ""
    TextBox4.Value = ""
    TextBox5.Value = ""
    TextBox6.Value = ""
    TextBox7.Value = ""
    TextBox8.Value = ""
    TextBox9.Value = ""
    TextBox10.Value = ""
End With

End Sub

Private Sub CommandButton2_Click()
Dim ws As Worksheet
Dim TextYear As Long
Dim TextMonth As Integer
Dim resultRow As Long
Dim i As Long

Set ws = ThisWorkbook.Sheets("SheetName")

TextYear = ws.Cells(ws.Rows.Count, 1).End(xlUp).Row

For TextMonth = 1 To 12
    resultRow = 0
    
    For i = 4 To ws.Cells(ws.Rows.Count, 1).End(xlUp).Row
        If ws.Cells(i, 1).Value = TextYear And ws.Cells(i, 2).Value = TextMonth Then
            ' Fill in textboxes with values from the found row
            TextYear = ws.Cells(i, 1).Value
            TextMonth = ws.Cells(i, 2).Value
            TextBox1.Value = ws.Cells(i, 3).Value
            TextBox2.Value = ws.Cells(i, 4).Value
            TextBox4.Value = ws.Cells(i, 5).Value
            TextBox5.Value = ws.Cells(i, 6).Value
            TextBox6.Value = ws.Cells(i, 7).Value
            TextBox7.Value = ws.Cells(i, 8).Value
            TextBox8.Value = ws.Cells(i, 9).Value
            TextBox9.Value = ws.Cells(i, 10).Value
            TextBox10.Value = ws.Cells(i, 11).Value
            
            resultRow = 1
            Exit For
        End If
    Next i
Next TextMonth

End Sub

Private Sub CommandButton3_Click()
‘ Unload the UserForm1
Unload UserForm1
End Sub

Private Sub CommandButton4_Click()
Dim ws As Worksheet
Dim TextYear As Long
Dim TextMonth As Integer
Dim resultRow As Long
Dim i As Long

Set ws = ThisWorkbook.Sheets("SheetName")

TextYear = ws.Cells(ws.Rows.Count, 1).End(xlUp).Row

For TextMonth = 1 To 12
    resultRow = 0
    
    For i = 4 To ws.Cells(ws.Rows.Count, 1).End(xlUp).Row
        If ws.Cells(i, 1).Value = TextYear And ws.Cells(i, 2).Value = TextMonth Then
            ' Fill in textboxes with values from the found row
            ws.Cells(i, 1).Value = TextYear
             ws.Cells(i, 2).Value = TextMonth
             ws.Cells(i, 3).Value = TextBox1.Value
             ws.Cells(i, 4).Value = TextBox2.Value
             ws.Cells(i, 5).Value = TextBox4.Value
             ws.Cells(i, 6).Value = TextBox5.Value
             ws.Cells(i, 7).Value = TextBox6.Value
             ws.Cells(i, 8).Value = TextBox7.Value
             ws.Cells(i, 9).Value = TextBox8.Value
             ws.Cells(i, 10).Value = TextBox9.Value
             ws.Cells(i, 11).Value = TextBox10.Value
            resultRow = 1
            Exit For
        End If
    Next i
Next TextMonth
MsgBox "Data was Updated successfully"
    ' Clear the values of input fields after data is added
    TextBox3.Value = ""
    ComboBox2.Value = ""
    TextBox1.Value = ""
    TextBox2.Value = ""
    TextBox4.Value = ""
    TextBox5.Value = ""
    TextBox6.Value = ""
    TextBox7.Value = ""
    TextBox8.Value = ""
    TextBox9.Value = ""
    TextBox10.Value = ""

End Sub

Private Sub UserForm_Initialize()
Dim sh As Worksheet
ComboBox1.Clear
‘ Fill ComboBox1 with worksheet names from the workbook
For Each sh In ThisWorkbook.Worksheets
ComboBox1.AddItem sh.Name
Next sh
End Sub
Userform and the error

Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa Dịch vụ tổ chức sự kiện 5 sao Thông tin về chúng tôi Dịch vụ sinh nhật bé trai Dịch vụ sinh nhật bé gái Sự kiện trọn gói Các tiết mục giải trí Dịch vụ bổ trợ Tiệc cưới sang trọng Dịch vụ khai trương Tư vấn tổ chức sự kiện Hình ảnh sự kiện Cập nhật tin tức Liên hệ ngay Thuê chú hề chuyên nghiệp Tiệc tất niên cho công ty Trang trí tiệc cuối năm Tiệc tất niên độc đáo Sinh nhật bé Hải Đăng Sinh nhật đáng yêu bé Khánh Vân Sinh nhật sang trọng Bích Ngân Tiệc sinh nhật bé Thanh Trang Dịch vụ ông già Noel Xiếc thú vui nhộn Biểu diễn xiếc quay đĩa Dịch vụ tổ chức tiệc uy tín Khám phá dịch vụ của chúng tôi Tiệc sinh nhật cho bé trai Trang trí tiệc cho bé gái Gói sự kiện chuyên nghiệp Chương trình giải trí hấp dẫn Dịch vụ hỗ trợ sự kiện Trang trí tiệc cưới đẹp Khởi đầu thành công với khai trương Chuyên gia tư vấn sự kiện Xem ảnh các sự kiện đẹp Tin mới về sự kiện Kết nối với đội ngũ chuyên gia Chú hề vui nhộn cho tiệc sinh nhật Ý tưởng tiệc cuối năm Tất niên độc đáo Trang trí tiệc hiện đại Tổ chức sinh nhật cho Hải Đăng Sinh nhật độc quyền Khánh Vân Phong cách tiệc Bích Ngân Trang trí tiệc bé Thanh Trang Thuê dịch vụ ông già Noel chuyên nghiệp Xem xiếc khỉ đặc sắc Xiếc quay đĩa thú vị
Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa
Thiết kế website Thiết kế website Thiết kế website Cách kháng tài khoản quảng cáo Mua bán Fanpage Facebook Dịch vụ SEO Tổ chức sinh nhật