PDA

View Full Version : When Word Opens


coach17
05-15-2002, 04:36 PM
When Word opens it automatically opens a blank document 1. Shouldn t it come up to a window to ask you if you want a new document or template etc. Mine use to work this way but has changed for a reason I do not know.
Please help.
Thanks

<img src= http://www.yoursighost.com/members/coach17/sig2.jpg >

Anne Troy
05-15-2002, 11:26 PM
Coach, I don t recall Word ever doing that.

PowerPoint does it, and Access does it. Excel does not.
Word doesn t either, at least not by default.

If you want to open Word and have the File-Open dialog open up, we can probably help with that, but you won t get that Startup screen like you do in PowerPoint and Access.

~Dreamboat
TheWordExpert

coach17
05-16-2002, 08:01 AM
Iguess that is what I menat The File Open dialogue box. How does that work.
Thanks

<img src= http://www.yoursighost.com/members/coach17/sig2.jpg >

Anne Troy
05-16-2002, 08:58 AM
Let me get back to you with the code, okay?

:)

~Dreamboat
TheWordExpert

coach17
05-16-2002, 09:01 AM
Ok, I will await your return.

<img src= http://www.yoursighost.com/members/coach17/sig2.jpg >

RoverM
05-17-2002, 07:43 PM
I assume that you want the dialog under File, New... ?

According to M$ it can be done by adding a macro called AutoNew to the template (in this case: normal.dot). However, that doesn t work ! (surprise...<img src=icon_smile_wink.gif border=0 align=middle>)

So, I build a workaround for this.
Add the following code to ThisWorkbook of Normal.dot:

<pre id=code><font face=courier size=2 id=code>

Option Explicit

Sub ShowNewDialog()
Application.Dialogs(wdDialogFileNew).Show
End Sub

</font id=code></pre id=code>

Save normal.dot and close Word.

Then create a new shortcut to Word.
Open the properties of this shortcut and change the target:

<pre id=code><font face=courier size=2 id=code>
C:Program FilesMicrosoft OfficeOfficeWINWORD.EXE /mShowNewDialog
</font id=code></pre id=code>

So, add the /mShowNewDialog AFTER the double quote.

Now, double click the new shortcut. You will see.... <img src=icon_smile_big.gif border=0 align=middle>


D Mzzl!
RoverM

RoverM
05-17-2002, 07:47 PM
btw: You have to use a public sub to let the macro work.
This means that the macro will show up in the macro list when the user wants to execute any macro.
But I guess there s no harm in that.


D Mzzl!
RoverM

coach17
05-20-2002, 10:35 AM
RoverM,
Thanks for the information. I will give it a try although it seems a little redundant I may or maynot use it.
Thanks

<img src= http://www.yoursighost.com/members/coach17/sig2.jpg >

RoverM
05-23-2002, 04:00 PM
Coach,

Did you have a change to try it yet ?


D Mzzl!
RoverM
~TheWordExpert