Macros and Checkboxes

ScottDucey

New Member
Joined
Jan 31, 2022
Messages
2
Office Version
  1. 2021
Platform
  1. Windows
I have written a series of macro's to interface with the data filter in MS Excel. I am also utilizing the feature "checkboxes", thereby linking them to the macros themselves. This is designed to make it easier for certain users on the team. Unfortunately, I am not able to make multiple checkbox selections, as it only seems to recognize the last selection I make, and the macro appears to "undo" the previous selection(s) made and only presents the most recent one. I hope I am explaining myself correctly and sure could use some help. Thanks in advance for your help.

Scott
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
Care to show us the macro(s) you're requesting assistance with ?
 
Upvote 0
Sure. Just one point. I am not a programmer. So whatever you solve, if you can explain simply I greatly appreciate it. :) That being said, here is the code for the various macros within a given column:
VBA Code:
Sub CompanyTypeCaptive()
'
' CompanyTypeCaptive Macro
'

'
    Sheets("Data").Select
    ActiveSheet.Range("$A$2:$BO$655").AutoFilter Field:=3, Criteria1:="Captive"
    Sheets("Checkbox Report Writer").Select
    Range("E22").Select
End Sub
Sub CompanyTypeRESET()
'
' CompanyTypeRESET Macro
'

'
    Sheets("Data").Select
    ActiveSheet.Range("$A$2:$BO$655").AutoFilter Field:=3
    Sheets("Checkbox Report Writer").Select
    Range("E36").Select
End Sub
Sub CompanyTpyeCaptiveManager()
'
' CompanyTpyeCaptiveManager Macro
'

'
    Sheets("Data").Select
    ActiveSheet.Range("$A$2:$BO$655").AutoFilter Field:=3, Criteria1:= _
        "Captive Manager"
    Sheets("Checkbox Report Writer").Select
    Range("E23").Select
End Sub
Sub CompanyTypeCarrier()
'
' CompanyTypeCarrier Macro
'

'
    Sheets("Data").Select
    ActiveSheet.Range("$A$2:$BO$655").AutoFilter Field:=3, Criteria1:="Carrier"
    Sheets("Checkbox Report Writer").Select
    Range("F24").Select
End Sub
Sub CompanyTypeCarrierNonRated()
'
' CompanyTypeCarrierNonRated Macro
'

'
    Sheets("Data").Select
    ActiveSheet.Range("$A$2:$BO$655").AutoFilter Field:=3, Criteria1:= _
        "Carrier (non rated)"
    Sheets("Checkbox Report Writer").Select
    Range("E25").Select
End Sub
Sub CompanyTypeMGAMGU()
'
' CompanyTypeMGAMGU Macro
'

'
    Sheets("Data").Select
    ActiveSheet.Range("$A$2:$BO$655").AutoFilter Field:=3, Criteria1:=Array( _
        "MGA", "MGA (HUB Owned)", "MGU"), Operator:=xlFilterValues
    Sheets("Checkbox Report Writer").Select
    Range("E28").Select
End Sub
Sub CompanyTypeProgramManager()
'
' CompanyTypeProgramManager Macro
'

'
    Sheets("Data").Select
    ActiveSheet.Range("$A$2:$BO$655").AutoFilter Field:=3, Criteria1:= _
        "Program Manager"
    Sheets("Checkbox Report Writer").Select
    Range("E31").Select
End Sub
Sub CompanyTypeRRG()
'
' CompanyTypeRRG Macro
'

'
    Sheets("Data").Select
    ActiveSheet.Range("$A$2:$BO$655").AutoFilter Field:=3, Criteria1:="RRG"
    Sheets("Checkbox Report Writer").Select
    Range("E32").Select
End Sub
Sub CompanyTypeSafetyGroup()
'
' CompanyTypeSafetyGroup Macro
'

'
    Sheets("Data").Select
    Range("C2").Select
    ActiveSheet.Range("$A$2:$BO$655").AutoFilter Field:=3, Criteria1:= _
        "Safety Group"
    Sheets("Checkbox Report Writer").Select
    Range("E33").Select
End Sub
Sub CompanyTypeStateFund()
'
' CompanyTypeStateFund Macro
'

'
    Sheets("Data").Select
    ActiveSheet.Range("$A$2:$BO$655").AutoFilter Field:=3, Criteria1:= _
        "State Fund"
    Sheets("Checkbox Report Writer").Select
    Range("E34").Select
End Sub
Sub FacilityTypeAlliedHealthcare()
'
' FacilityTypeAlliedHealthcare Macro
'

'
    Sheets("Data").Select
    ActiveSheet.Range("$A$2:$BO$655").AutoFilter Field:=9, Criteria1:=Array( _
        "AHC", "AHC (on hold)", "AHC?"), Operator:=xlFilterValues
    Sheets("Checkbox Report Writer").Select
    Range("P10").Select
End Sub
Sub FacilityTypeRESET()
'
' FacilityTypeRESET Macro
'

'
    Sheets("Data").Select
    ActiveSheet.Range("$A$2:$BO$655").AutoFilter Field:=9
    Sheets("Checkbox Report Writer").Select
    Range("P12").Select
End Sub
 
Upvote 0
Sorry Scott, I'm unable to help with this
Hopefully another member will drop by and assist
 
Upvote 0

Forum statistics

Threads
1,214,965
Messages
6,122,499
Members
449,089
Latest member
Raviguru

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