Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

XL2000: Can't Link Value of Control to Function


View products that this article applies to.

This article was previously published under Q214296

↑ Back to the top


Symptoms

In Microsoft Excel, if you try to link the value of a check box, option button, list box, scroll bar, or spinner control to a function, you will receive the following error message:
The text you entered is not a valid reference or defined name.

↑ Back to the top


Cause

You cannot link the value returned by a control to a formula or a function.

↑ Back to the top


More information

You can link the value of a control to a cell in a worksheet by selecting the control and typing the reference to the cell in the formula bar. You can also create a link using the Cell Link box on the Control tab of the Format Control dialog box. When you link the value of a control to a cell, it is designed to be a two-way link, so that a change to the cell value changes the value of the control, and vice versa. Because the control cannot change the value of a function, it is not possible to link the value of a control to a worksheet formula or a Visual Basic function.

↑ Back to the top


References

For more information about Forms toolbar, click Microsoft Excel Help on the Help menu, type Types of buttons, check boxes, and other controls on the Forms toolbar in the Office Assistant or the Answer Wizard, and then click Search to view the topic.

↑ Back to the top


Keywords: KB214296, kbprb, kbui, kberrmsg

↑ Back to the top

Article Info
Article ID : 214296
Revision : 3
Created on : 11/5/2003
Published on : 11/5/2003
Exists online : False
Views : 232