The Code Cage - Microsoft Office help Free Microsoft Office Help for all Applications!  

To stop seeing these ads and get other benefits check This page!

Go Back   The Code Cage Forums > Newsgroups - Microsoft Topics > Newsgroup - Word Forum > Word VBA Programming
  Microsoft Office Chat Online now!


Word VBA Programming Post questions in this forum if they are related to using Microsoft Word VBA Programming, Macro's etc.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 4th February 2010, 06:46 PM
Frances New
Newsgroup Contributor


My Top Tip Count:

 
Posts: n/a
Chats:
Default My Hero

------ Register to get rid of these "In Post" ads! ------


Jean D, you are my hero!!!!! This is EXACTLY what I wanted to accomplish. You are amazing!!!



Jean D wrote:

Actually, I thought about this some more and decided to do it
'Original Source: The Code Cage Forums http://www.thecodecage.com/forumz/word-vba-programming/176450-my-hero.html#post633698
27-May-08

Actually, I thought about this some more and decided to do it with
SendKeys:

SendKeys "%"
SendKeys "F"
SendKeys "N"
SendKeys "{Tab}{Tab}{Tab}"
SendKeys "{Down}{Down}"
SendKeys "{Enter}"

Now I can give the users a button on their QAT that runs this macro and
gets them directly to our custom templates only.

Thanks again.

Previous Posts In This Thread:

On Wednesday, May 21, 2008 8:55 PM
Jean D wrote:

New File Dialog in Word 2007
I have a little macro that opens the new file dialog in Word 2007 and
changes its default view:

Sub CustomFileNew()
Set vdialog = Dialogs(wdDialogFileNew)
vdialog.Update
SendKeys "%2"
Button = vdialog.Show
If Button <> 0 Then
vTemp = vdialog.Template
Documents.Add Template:=vTemp
End If
End Sub

It works fine, however, it brings up the dialog which shows all of Word's
template tabs as well as our own. I'd like to bring up the dialog that
appears when you click the Office button, New, My Templates that shows only
our custom tabs. Can anyone tell me how to modify this code to do that?

Thanks!

On Sunday, May 25, 2008 4:29 AM
Cindy M. wrote:

Hi Jean,You can useDialogs(wdDialogFileNew).
Hi Jean,

You can use

Dialogs(wdDialogFileNew).Show

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 17 2005)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or
reply in the newsgroup and not by e-mail :-)

On Tuesday, May 27, 2008 12:13 PM
Jean D wrote:

Re: New File Dialog in Word 2007
On Sun, 25 May 2008 10:29:47 +0200, Cindy M. wrote:


Thank you Cindy, but that still brings up all of Word's categories (Faxes,
Letters, Other Documents, etc.) with its templates. Is there a way to
bring up only our custom directories? In Pro, you click on Office button,
New, My Templates and get the view which I would like to achieve.

Thanks so much for your reply!

On Tuesday, May 27, 2008 1:42 PM
Jean D wrote:

Actually, I thought about this some more and decided to do it
Actually, I thought about this some more and decided to do it with
SendKeys:

SendKeys "%"
SendKeys "F"
SendKeys "N"
SendKeys "{Tab}{Tab}{Tab}"
SendKeys "{Down}{Down}"
SendKeys "{Enter}"

Now I can give the users a button on their QAT that runs this macro and
gets them directly to our custom templates only.

Thanks again.


Submitted via EggHeadCafe - Software Developer Portal of Choice
XmlDocument Caching / SQL Server nText
http://www.eggheadcafe.com/tutorials...hing--sql.aspx
Reply to this post


Did you find this post helpful? Yes | No

The Code Cage Advertisment
Advertisement

To stop seeing these ads and get other benefits check This page!
Reply

Bookmarks

Tags
hero


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

The Code Cage Affilliates


To stop seeing these ads and get other benefits check This page!



All times are GMT +1. The time now is 07:56 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.3.2
No part of this board may be copied or reproduced either in part or full without the express permission of The Code Cage Team.
We are not associated with nor employed by Microsoft in any way, we simply provide resources!
All MS office icons are registered trademarks of the application the represent