ID: Q121379
5.00c 7.00 WINDOWS kbprg
The information in this article applies to:
In Microsoft Excel, when you use a macro or Visual Basic procedure to call the Go To dialog box, the Special button is unavailable.
This behavior occurs because you should not be able to "tunnel" or bring up a second dialog box, when the first dialog box was called from a macro.
To work around this behavior, do either of the following:
Application.Dialogs(xlDialogSelectSpecial).Show
or the following version 4.0 macro example:
=SELECT.SPECIAL?()
-or-
The following examples select the cells on the active worksheet that contain constant values:
Visual Basic Example --------------------
Sub Select_Constants()
Selection.SpecialCells(xlConstants, 23).Select
End Sub
Version 4.0 Macro Example
-------------------------
A1: SelectCells
A2: =SELECT.SPECIAL(2,23)
A3: =RETURN()
Microsoft provides macro 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 macro is provided as is and Microsoft in no
way guaranties that the following code can be used in all situations
and will not support modifications of the code to suit specific
customer requirements.
For more information about the Show Method, choose the Search button in the Visual Basic Reference and type:
Show Method
KBCategory: kbprg
KBSubcategory:
Additional reference words: 5.00c 7.00 97 gpf grey gray greyed access dimmed
Version : 5.00c 7.00
Platform : WINDOWS
Last Reviewed: June 5, 1997