Microsoft KB Archive/831070

= You receive a &quot;Requested operation is presently disabled&quot; error message when you use a command button in a custom window in Visio 2007 or in Visio 2003 =

Article ID: 831070

Article Last Modified on 11/14/2006

-

APPLIES TO


 * Microsoft Office Visio Professional 2007
 * Microsoft Office Visio Standard 2007
 * Microsoft Office Visio Professional 2003
 * Microsoft Office Visio Standard 2003

-



SYMPTOMS
In Microsoft Office Visio 2007 or in Microsoft Office Visio 2003, when you use a command button in a Microsoft Visual Basic for Applications (VBA) custom window (user form) to show the Save As dialog box, you may receive the following error message:

Requested operation is presently disabled.



CAUSE
This problem may occur if the command button in your custom window becomes the active item, instead of the Visio Drawing Control. This problem may occur if both of the following conditions are true:
 * You use the DoCmd method to show the Save As dialog box in a custom window (user form).
 * The user form contains a Visio Drawing Control.



WORKAROUND
To work around this problem, use the SetFocus method to make your Visio Drawing Control active before the DoCmd method in your VBA macro.



MORE INFORMATION
Microsoft provides programming examples for illustration only, without warranty either expressed or implied. This includes, but is not limited to, the implied warranties of merchantability or fitness for a particular purpose. This article assumes that you are familiar with the programming language that is being demonstrated and with the tools that are used to create and to 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 requirements.

Additional query words: VSO2007 VSO2003 VISIO2003

Keywords: kberrmsg kbprb KB831070

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.