Solved

SIMPLE!!

Posted on 1998-12-10
2
139 Views
Last Modified: 2010-05-03
I want to be able to click a button and have a menu header display the options below it. For example, click a command button (not the menu header itself) and the options within the FILE menu header be displayed (NEW, OPEN, SAVE, etc.). This sounds like a simple command request, but I've tried repeatedly to no avail. Any suggestions??
0
Comment
Question by:KeithAtWork
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 1

Accepted Solution

by:
TDragon earned 50 total points
ID: 1449373
Use the SendKeys command as follows...

Private Sub Command1_Click()
    SendKeys "%F", True
End Sub

Of course this requires the Keyboard access key of 'F' for your File Menu.
0
 

Author Comment

by:KeithAtWork
ID: 1449374
Thanks, it worked fine.
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question