The information in this article applies to:
SYMPTOMSWhen you create a dynamic custom dialog box in Microsoft Excel for the Macintosh, versions 5.0 and 5.0a, and one action of the dynamic trigger control changes labels on option buttons or check boxes, you may notice that text from a previous label is not replaced by the new label. WORKAROUNDMicrosoft 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 professionals 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/overview/overview.aspTo work around this problem, have your dynamic dialog box redrawing Sub procedures call the following Visual Basic for Applications routine (or something similar) whenever you need to rewrite an option button or check box label:
To call this procedure within a Visual Basic for Applications module and
have it apply to an option button named "Option1" (without the quotation
marks) on the Active Dialog, and to pad the label with 30 spaces, include a
call in the procedure that writes the labels as follows:
Keep in mind that with proportional fonts, it may take more than 10 spaces
to obscure 10 wider characters (such as the "#" character). Also keep in
mind that the ClearLabels procedure must be called after making the
assignment of the new label caption.
If you prefer to have one procedure fix all of the option buttons at once by looping through them, you can create a procedure such as the following:
STATUSMicrosoft has confirmed this to be a problem in the products listed at the beginning of this article. This problem was corrected in Microsoft Excel 98 Macintosh Edition. REFERENCESFor more information about affecting controls and dialog boxes in Visual Basic for Applications, consult the "Visual Basic User's Guide," Chapter 11 "Controls and Dialog Boxes." Additional query words: 5.00a CheckBoxes Check Boxes Mac XL5
Keywords : kbcode kbprg PgmOthr |
Last Reviewed: November 9, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |