The information in this article applies to:
SUMMARY
The following information includes Visual Basic procedures that you can use
in Microsoft Excel to return information from Program Manager and to
perform actions on Program Manager groups and items using Dynamic Data
Exchange (DDE) commands.
MORE INFORMATION
The application name for Program Manager is "ProgMan." The topic available
in the Program Manager application is also "ProgMan." The following is a
list of commands available in the ProgMan topic that you can use in a DDE
conversation with Program Manager:
Creates a new group at Program Manager or activates the window of an existing group.DeleteGroup(GroupName) Deletes an existing program group.AddItem(CmdLine,Name,IconPath, Creates a new program item (icon) in the IconIndex,xPos,yPos, active group. DefDir,HotKey,,fMinimize)ShowGroup(GroupName,ShowCommand) Maximizes, minimizes, or restores a group window.You can also request the "progman" item to return a list of your Program Manager groups. EXAMPLESCreate New GroupThe following example creates a group called "Excel Files" or activates an existing group named "Excel Files" in Program Manager.
Delete Existing GroupThe following example deletes the group "Excel Files." Note that the group is deleted even if it contains items.
Add New ItemThe following example prompts you to enter a path to the item (c:\excel\excel.exe) and a name for the item (Excel), and then adds the item to the active group:
Maximize, Minimize or Restore Group Window
Return List of GroupsThe following example returns a list of your Program Manager groups to Sheet1 in the active workbook:
Microsoft provides examples of Visual Basic for Applications procedures 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. The Visual Basic procedures in this article are
provided 'as is' and Microsoft does not guarantee that they can be used in
all situations. While Microsoft support professionals can help explain the
functionality of a particular macro, they will not modify these examples to
provide added functionality, nor will they help you construct macros to
meet your specific needs. If you have limited programming experience, you
may want to consult one of the Microsoft Solution Providers. Solution
Providers offer a wide range of fee-based services, including creating
custom macros. For more information about Microsoft Solution Providers,
call Microsoft Customer Information Service at (800) 426-9400.
For additional information, please see the following article(s) in the Microsoft Knowledge Base: Q72907 Manipulating Program Manager Groups Using DDE Interface REFERENCESFor more information about the DDEExecute Method, the DDEInitiate Method, or the DDETerminate Method, choose the Search button in the Visual Basic Reference and type: DDE: channels Additional query words: 5.00c howto vbappcode
Keywords : kbenv kbinterop kbprg |
Last Reviewed: October 13, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |