In a large (10,000 code lines) Excel project (XLS format under Excel 2007) I have several Userforms with textbox, option buttons and checkboxes linked to named cells via the ControlSource property.
I have been unable, despite hours of Google searches, to find a clear definition of the syntax rules for this property, which is a string value providing a reference to the linked worksheet cell.
Assuming the linked cell is named "name1" I have some controls with the ControlSource defined in the format "name1", and others defined as "=name1". Both methods seem to work, but I am not sure whether the "=" character is required or whether it should be omitted. I am setting the ControlSource value in the properties table in design mode and the quote marks are not typed in.
Does anyone know what the correct syntax is?
I also have some cases where two forms each have a control linked to the same cell, although only one form is shown at a time. Is this likely to cause problems?
Geoff
Bookmarks