Hi All,
I'm trying to add checkboxes to my worksheet using VBA and stumbled across this code which looks like it'd do the job:
Mr Excel thread from 2002
Pasting this into Excel 2010 and it doesn't seem to like the ActiveSheet.OLEObjects.Add bit (ClassType specified as a Form Checkbox.)
Recording my own macro suggests this should be changed to ActiveSheet.CheckBoxes.Add
Can anyone please confirm if ActiveSheet.OLEObjects.Add works in 2003 and not in 2010?
Ultimately the code needs to work in 2003, just for now I'm working in 2010 until I can get 2003 installed again. the code will add a forms checkbox to a given cell and link it
I'm trying to add checkboxes to my worksheet using VBA and stumbled across this code which looks like it'd do the job:
Mr Excel thread from 2002
Pasting this into Excel 2010 and it doesn't seem to like the ActiveSheet.OLEObjects.Add bit (ClassType specified as a Form Checkbox.)
Recording my own macro suggests this should be changed to ActiveSheet.CheckBoxes.Add
Can anyone please confirm if ActiveSheet.OLEObjects.Add works in 2003 and not in 2010?
Ultimately the code needs to work in 2003, just for now I'm working in 2010 until I can get 2003 installed again. the code will add a forms checkbox to a given cell and link it
Last edited: