Solved

SIMPLE!!

Posted on 1998-12-10
2
133 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
2 Comments
 
LVL 1

Accepted Solution

by:
TDragon earned 50 total points
Comment Utility
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
Comment Utility
Thanks, it worked fine.
0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

743 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now