XL: Macro to Delete Link Between List Box and Range of CellsLast reviewed: December 1, 1997Article ID: Q119084 |
The information in this article applies to:
SUMMARYIn Microsoft Excel, when you assign values to the List property of the ListBoxes object, the link for that list box is cleared. If you want to remove the link but leave the values that resulted from the link, you can reassign the List property of the list box to the values from the worksheet, and the values will remain even though the link is broken. This article contains a sample Microsoft Visual Basic for Applications macro that breaks the link between a list box (or a drop-down list box) on a dialog sheet and a worksheet range but leaves the values from that range in the box.
MORE INFORMATIONMicrosoft provides programming examples for illustration only, without warranty either expressed or implied, including, but not limited to, the implied warranties of merchantability and/or fitness for a particular purpose. This article assumes that you are familiar with the programming language being demonstrated and the tools used to create and debug procedures. Microsoft support engineers can help explain the functionality of a particular procedure, but they will not modify these examples to provide added functionality or construct procedures to meet your specific needs. If you have limited programming experience, you may want to contact the Microsoft fee-based consulting line at (800) 936-5200. For more information about the support options available from Microsoft, please see the following page on the World Wide Web:
http://www.microsoft.com/support/supportnet/refguide/default.asp To Create a Dialog Box With a Linked List Box
To Create a Visual Basic Macro to Break the Link but Leave the List
MORE INFORMATIONIn Microsoft Excel, you can place values in a list box or in a drop-down box by linking the box to a range on a worksheet To do this, select the box, and click Object on the Format menu. Then, enter the desired range in the Input Range box.
|
Additional query words: 5.00 5.00c 7.00
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |