Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 195
  • Last Modified:

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

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
monbois
Asked:
monbois
  • 4
  • 3
  • 2
  • +1
1 Solution
 
Saqib Husain, SyedEngineerCommented:
From Excel press alt-F8
Select your macro
Click on Options
Here you can assign a key
0
 
Martin LissOlder than dirtCommented:
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
 
monboisAuthor Commented:
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
Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

 
Martin LissOlder than dirtCommented:
Can you post a picture of the customized watch window?
0
 
Rory ArchibaldCommented:
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
 
monboisAuthor Commented:
Thanks for your info, rorya.  How do I assign a shortcut key to this routine?
0
 
Rory ArchibaldCommented:
Using the steps saqibh posted above. ;)
0
 
monboisAuthor Commented:
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
 
Martin LissOlder than dirtCommented:
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
 
monboisAuthor Commented:
Sorry I missed this solution before I continued seeking an answer.  Thanks to everyone for your help - it works perfectly!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 4
  • 3
  • 2
  • +1
Tackle projects and never again get stuck behind a technical roadblock.
Join Now