Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Microsoft Office > Other Office > Word VBA
|
Word VBA Discuss using VBA to program Word.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Word VBA section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 30th, 2011, 07:45 AM
Authorized User
 
Join Date: May 2011
Posts: 44
Thanks: 7
Thanked 0 Times in 0 Posts
Exclamation Word 2007 shortcut to open the UserForm

Hi,

I am attempting to get my userForm to open without going into the VBA editor then 'run'. I have tried creating a shortcut but it is not bringing the userform up. Is it possible for somebody to please give me a walkthrough of how to create a shortcut for e.g. CTRL+SHIFT+O. (It keeps opening the panel that includes dictionary and thesaurus).

Thanks
 
Old June 6th, 2011, 06:46 AM
Friend of Wrox
 
Join Date: Sep 2005
Posts: 812
Thanks: 1
Thanked 53 Times in 49 Posts
Default

You can create a subroutine that calls the form

Sub OpenForm
Form1.Show()
End Sub

and assign a shortcut key for this sub using OnKey method (http://vbadud.blogspot.com/2007/06/a...el-macros.html)

Cheers
Shasur
__________________
C# Code Snippets (http://www.dotnetdud.blogspot.com)

VBA Tips & Tricks (http://www.vbadud.blogspot.com)
The Following User Says Thank You to Shasur For This Useful Post:
cjcant (June 13th, 2011)





Similar Threads
Thread Thread Starter Forum Replies Last Post
XSLT Problem with Word 2007 Half-Saint XSLT 1 January 6th, 2010 07:49 AM
Word 2007 VBA validation of formfield beth.harless Word VBA 0 August 18th, 2009 02:24 PM
VBA Word Userform Dynamically - Help rangeshram Word VBA 9 August 17th, 2009 08:48 AM
Word 2007, undo, VBA FredrikH Word VBA 0 April 16th, 2009 04:20 AM
Open database via a shortcut with arguments ta5ae Access 2 June 23rd, 2005 12:48 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.