darren4164
New Member
- Joined
- Jan 24, 2019
- Messages
- 2
My first post - I'm new to VBA.
My workbook has about 20 worksheets. I would like to get input from the user that will then call macros to print specific sheets. I've got the print macros working correctly but I keep getting Run-timer error 424 - Object required errors when I take the input and call upon the various print macros.
For simplicity I have put CheckBoxes beside the different choices (there are four choices - 'All', 'Summary', 'Service' and 'Admin').
My coding is as follows:
Sub Test()
If CheckBox1.Value = True Then
Call Print_All
End If
If CheckBox2.Value = True Then
Call Print_Summary
End If
If CheckBox3.Value = True Then
Call Print_Service
End If
If CheckBox4.Value = True Then
Call Print_Admin
End If
End Sub
I also tried getting the User input through a ListBox but got the same error.
Any help is greatly appreciated!!!
My workbook has about 20 worksheets. I would like to get input from the user that will then call macros to print specific sheets. I've got the print macros working correctly but I keep getting Run-timer error 424 - Object required errors when I take the input and call upon the various print macros.
For simplicity I have put CheckBoxes beside the different choices (there are four choices - 'All', 'Summary', 'Service' and 'Admin').
My coding is as follows:
Sub Test()
If CheckBox1.Value = True Then
Call Print_All
End If
If CheckBox2.Value = True Then
Call Print_Summary
End If
If CheckBox3.Value = True Then
Call Print_Service
End If
If CheckBox4.Value = True Then
Call Print_Admin
End If
End Sub
I also tried getting the User input through a ListBox but got the same error.
Any help is greatly appreciated!!!