Is there a way to check if an OLEObject has a LinkedCell property? For example labels and buttons don’t have linkedcells while others do. I am trying to write a piece of code that can replace the linkedCells by looping through all the OLEObjects in a sheet. Thanks in advance.
Share
You have to do the standard VBA technique of catching an error to test the LinkedCell property.
The following is the picture of proof that it worked, on a blank Excel sheet, with four different controls.