I have numerous speadsheets each containing many checkboxes from which I need to extract data. I was trying to write a macro that would link a particular checkbox to a cell on a separate worksheet I created to compile the data in that particular workbook.
ActiveSheet.Shapes("Check Box 276"
.Select
ActiveSheet.Shapes("Check Box 276"
.Select
With Selection
'.Value = xlOn
.LinkedCell = "supplier_details!$GB$2"
.Display3DShading = False
End With
Note I have commented out the .Value statement.
When running the macro, If the checkbox is checked, TRUE appears in the linked cell as expected, but an unchecked checkbox puts nothing in the cell. I don't want the data changed, I just need to get it into a format I can use.
Any ideas?
Thanks!
ActiveSheet.Shapes("Check Box 276"
ActiveSheet.Shapes("Check Box 276"
With Selection
'.Value = xlOn
.LinkedCell = "supplier_details!$GB$2"
.Display3DShading = False
End With
Note I have commented out the .Value statement.
When running the macro, If the checkbox is checked, TRUE appears in the linked cell as expected, but an unchecked checkbox puts nothing in the cell. I don't want the data changed, I just need to get it into a format I can use.
Any ideas?
Thanks!