Sub Clickall()
With Selection
ActiveSheet.Shapes.Range(Array(“Check Box 2”)).Select
.Value = xlOn
.LinkedCell = “”
.Display3DShading = False
End With
End Sub
I’m trying to launch this thing from UiPath but I’m doing several things wrong I’m afraid.
Create one macro file and put this code inside as forum not allowing me to upload xlsm file here.
Public Function Check(filePath As String, sheetName As String)
Dim xlWorkbook As Workbook
Dim xlWorksheet As Worksheet
Dim xlRange As Range
Set xlWorkbook = Workbooks.Open(filePath, UpdateLinks:=False)
Set xlWorksheet = xlWorkbook.Worksheets(sheetName)
For Each chkBox In xlWorksheet.CheckBoxes
chkBox.Value = xlOn
Next chkBox
xlWorkbook.Save
xlWorkbook.Close
End Function