XL98: Setting RowSource Property Results in Run-Time ErrorLast reviewed: March 10, 1998Article ID: Q175795 |
The information in this article applies to:
SYMPTOMSWhen you run a Visual Basic for Applications macro, you may receive the following error message:
Run-time error '380:' Could not set the RowSource property. Invalid property value. CAUSEThis error occurs when you attempt to programmatically set the RowSource property of a ListBox or ComboBox control on a UserForm. The RowSource property is not available in Microsoft Excel 98 Macintosh Edition.
WORKAROUNDTo work around this behavior, store the values in a worksheet, and then use a Visual Basic for Applications procedure to populate the control. Microsoft 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/supportnet/refguide/The following example adds values that are stored on a worksheet to a ListBox or ComboBox control on a UserForm:
STATUSThis behavior is by design of Microsoft Excel.
REFERENCESFor more information about using the ListBox control, click the Office Assistant, type "Listbox," click Search, and then click to view "ListBox Control." For more information about using the ComboBox control, click the Office Assistant, type "Combobox," click Search, and then click to view "ComboBox Control." NOTE: If the Assistant is hidden, click the Office Assistant button on the Standard toolbar. If Microsoft Help is not installed on your computer, please see the following article in the Microsoft Knowledge Base:
ARTICLE-ID: Q179216 TITLE : Off98: How to Use the Microsoft Office Installer Program |
Additional query words: XL98
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |