Solved

How do I open an Excel form via Ctrl+[some other key]

Posted on 2012-03-15
10
179 Views
Last Modified: 2012-03-16
Hello,

I'm watching this great tutorial on how to create a Watch Window with VBA.  The instructor says he's assigned Ctrl+W to open the form, but he doesn't explain how he did that.  I have no idea how to open a form in Excel.

Can anyone help?

Thanks.

Link to tutorial on YouTube:

http://www.youtube.com/watch?v=up7H-t2ew7E&feature=related
0
Comment
Question by:monbois
  • 4
  • 3
  • 2
  • +1
10 Comments
 
LVL 43

Accepted Solution

by:
Saqib Husain, Syed earned 500 total points
ID: 37727797
From Excel press alt-F8
Select your macro
Click on Options
Here you can assign a key
0
 
LVL 47

Expert Comment

by:Martin Liss
ID: 37727838
Ctrl+W doesn't open your form, it opens the Watch Window. If you'd like to know more about Debugging then you might want to read my Debugging article. It's aimed at VB6 but it's valid for VBA.
0
 

Author Comment

by:monbois
ID: 37729019
Hello MartinLiss - Thanks for the info, but the instructor in the YouTube video says he's somehow assigned Ctrl+W to open his customized Watch Window in lieu of Excel's built-in Watch Window.  I didn't even know Excel HAD a watch window (I'm far from an expert, which is why I need help) so that's good to know.  Still, I like this cusomized Watch Window better than the standard one.
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 47

Expert Comment

by:Martin Liss
ID: 37729329
Can you post a picture of the customized watch window?
0
 
LVL 85

Expert Comment

by:Rory Archibald
ID: 37729451
If you look about 8:25 into the video, Bill shows the ShowForm routine he uses to show the actual Watch Box form. You simply need to assign a shortcut key to that as saqibh already indicated.
0
 

Author Comment

by:monbois
ID: 37729479
Thanks for your info, rorya.  How do I assign a shortcut key to this routine?
0
 
LVL 85

Expert Comment

by:Rory Archibald
ID: 37729494
Using the steps saqibh posted above. ;)
0
 

Author Comment

by:monbois
ID: 37729500
MartinLiss - Attached is a screen shot of my form.  Nobody answering me so far seems to understand that I can't figure out how to open any form in Excel - it's like it's a big secret - let alone assign this opening command to a key combination.
Excel-VBA-Watch-Window-Form.jpg
0
 
LVL 47

Expert Comment

by:Martin Liss
ID: 37729584
ssaqibh's answer is correct and here's more explanation.

Create this macro

Sub Macro1()
frmWB.Show
End Sub

Then do Tools|Macro|Macros and you will see the screen on the left. Select the new macro, click Options and you can assign a letter in the screen on the right.
Macro options
0
 

Author Closing Comment

by:monbois
ID: 37729678
Sorry I missed this solution before I continued seeking an answer.  Thanks to everyone for your help - it works perfectly!
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Introduction This Article briefly covers methods of calculating the NPV and IRR variants in Excel as well as the limitations in calculating and interpreting IRR results. Paraphrasing Richard Shockley, author of my favourite finance reference tex…
Excel can be a tricky bit of software to get your head around. Whilst you’ll be able to eventually get to grips with the basic understanding of how to get by, there are a few Excel tips that not everybody will even know about let alone know how to d…
The viewer will learn how to create two correlated normally distributed random variables in Excel, use a normal distribution to simulate the return on different levels of investment in each of the two funds over a period of ten years, and, create a …
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

679 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