Hi everyone, I am trying to run the same macro several times, but keep getting the error: The macro may not be available in this workbook or all macros may be disabled. I have enabled everything, so not sure what I am missing. The "Enter" button is in a userform.
The macro works fine on its own without the Application.run, but I am going to have to use it multiple times and would only like it in there once.
Thanks!
Code:
Private Sub EnterButton1_Click()
Application.Run "StatusUpdate"
End Sub
Sub StatusUpdate()
' Enter status update (person/task) into table
If Range("ChuckQty") > 12 Then
If ComboBox_All_Personnel_13 <> "" Then
Range("Table1[[#Headers],[Current Status (person)]]").Offset(13, 0).Select
Selection.Value = ComboBox_All_Personnel_13.Value
End If
Range("Table1[[#Headers],[Current Status (task)]]").Offset(13, 0).Select
If ComboBox_Status_Testing_13 <> "" Then
Selection.Value = ComboBox_Status_Testing_13.Value
ElseIf ComboBox_Status_Analysis_13 <> "" Then
Selection.Value = ComboBox_Status_Analysis_13.Value
End If
End If
End Sub
The macro works fine on its own without the Application.run, but I am going to have to use it multiple times and would only like it in there once.
Thanks!