System Error &H8000FFFF (-2147418113)

MO24

New Member
Joined
Mar 30, 2022
Messages
5
Office Version
  1. 365
Platform
  1. Windows
What is this error?
And how can I avoid it in this code?

VBA Code:
Private Sub AssessmentForm_Initialize()

    AssessmentSubject.AddItem "Mathematics"
    AssessmentSubject.AddItem "English"
    AssessmentSubject.AddItem "Science"
    AssessmentSubject.AddItem "Geography"
    AssessmentSubject.AddItem "Commerce"
    AssessmentSubject.AddItem "History"
    AssessmentSubject.AddItem "Graphics"
    AssessmentSubject.AddItem "PDH"
    AssessmentSubject.AddItem "PE"
    AssessmentSubject.AddItem "Other"
    AssessmentLevel.AddItem "Assessment"
    AssessmentLevel.AddItem "Formative"
    AssessmentLevel.AddItem "Class"
    AssessmentLevel.AddItem "Other"
    AssessmentLevel.AddItem "Draft"
    AssessmentLevel.AddItem "Plan(Assessment)"
    AssessmentLevel.AddItem "Plan(Checkpoint)"
    AssessmentLevel.AddItem "Checkpoint"
    TypeOfAssessment.AddItem "Essay"
    TypeOfAssessment.AddItem "Worksheet"
    TypeOfAssessment.AddItem "Exercise"
    TypeOfAssessment.AddItem "Exam"
    TypeOfAssessment.AddItem "Quiz"
    TypeOfAssessment.AddItem "Mindmap"
    TypeOfAssessment.AddItem "Notes"
    TypeOfAssessment.AddItem "Video"
    TypeOfAssessment.AddItem "Read"
    TypeOfAssessment.AddItem "Report"
    TypeOfAssessment.AddItem "Other"
    TypeOfAssessment.AddItem "Checkpoint"
    TypeOfAssessment.AddItem "Speech"
    TypeOfAssessment.AddItem "Summary"
    TypeOfAssessment.AddItem "CAD"
End Sub
Private Sub AssessmentCancel_Click()
Unload Me
End Sub
Private Sub AssessmentClear_Click()
AssessmentSubject.Clear
AssessmentLevel.Clear
TypeOfAssessment.Clear
TextBox1.Value = ""
TextBox2.Value = ""
Call AssessmentForm_Initialize
End Sub
Private Sub AssessmentInsert_Click()
Sheet1.Activate
Cells(18, 2) = AssessmentSubject.Value
Cells(18, 3) = AssessmentLevel.Value
Cells(18, 4) = TypeOfAssessment.Value
Cells(18, 5) = TextBox1.Value
Cells(18, 6) = TextBox2.Value
    
    ActiveWorkbook.Worksheets("Lists").ListObjects("Table1").Sort.SortFields.Clear
    ActiveWorkbook.Worksheets("Lists").ListObjects("Table1").Sort.SortFields.Add2 _
        Key:=Range("Table1[[#All],[Due Date]]"), SortOn:=xlSortOnValues, Order:= _
        xlAscending, DataOption:=xlSortNormal
    With ActiveWorkbook.Worksheets("Lists").ListObjects("Table1").Sort
        .Header = xlYes
        .MatchCase = False
        .Orientation = xlTopToBottom
        .SortMethod = xlPinYin
        .Apply
    End With

End Sub


After i hit okay it comes up with "Run time error 361 : could not load or unload object"

Can anyone help me with this?

Thanks
MO24
 

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"

Forum statistics

Threads
1,224,818
Messages
6,181,152
Members
453,021
Latest member
Justyna P

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top