PC Review


Reply
Thread Tools Rate Thread

AutoExec Code to Open Template Dialogue on Startup

 
 
=?Utf-8?B?RGVybW90?=
Guest
Posts: n/a
 
      28th Feb 2006
I am experimenting with macros.........
I use the following macro to open the Word Template Dialog.

Sub AutoExec()
'
' AutoExec Macro to open the template Dialogue Box
' Macro created 25/02/2006 by Dermot Hayes
'
Dialogs(wdDialogFileNew).Show

End Sub

Question 1
Can anyone tell me the appropriate code to open the Excel Template Dialog?

Question 2
Where will I get a list of Excel command as they are used within code...i.e
wdDialogFileNew as use in the Word example above?

Question 3
Any general advice / links regarding useful Excel macros to consider
incorporating in excel spreadsheets?
 
Reply With Quote
 
 
 
 
Tom Ogilvy
Guest
Posts: n/a
 
      1st Mar 2006
Question 1
Can anyone tell me the appropriate code to open the Excel Template Dialog?

Excel doesn't use templates like Word, so there probably isn't one

But the commands to show builtin dialogs are similar

Application.Dialogs(xldialogprint).Show

Question 2
Where will I get a list of Excel command as they are used within code...i.e
wdDialogFileNew as use in the Word example above?

Use the object explorer in the VBE, same as in word

Question 3
Any general advice / links regarding useful Excel macros to consider
incorporating in excel spreadsheets?

This group
http://www.cpearson.com/Excel.htm
see the topics and pages index (Chip Pearson)

http://www.j-walk.com/ss/excel (John Walkenback)
see Tips/ developer tips

http://www.contextures.com/tiptech.html (Debra Dalgleish's site)

Obviously the more you know about Excel itself, the better you will be able
to program its capabilities.

--
Regards,
Tom Ogilvy




"Dermot" <(E-Mail Removed)> wrote in message
news:19902DC4-F74B-4028-B9BA-(E-Mail Removed)...
> I am experimenting with macros.........
> I use the following macro to open the Word Template Dialog.
>
> Sub AutoExec()
> '
> ' AutoExec Macro to open the template Dialogue Box
> ' Macro created 25/02/2006 by Dermot Hayes
> '
> Dialogs(wdDialogFileNew).Show
>
> End Sub
>
> Question 1
> Can anyone tell me the appropriate code to open the Excel Template Dialog?
>
> Question 2
> Where will I get a list of Excel command as they are used within

code...i.e
> wdDialogFileNew as use in the Word example above?
>
> Question 3
> Any general advice / links regarding useful Excel macros to consider
> incorporating in excel spreadsheets?



 
Reply With Quote
 
=?Utf-8?B?RGVybW90?=
Guest
Posts: n/a
 
      1st Mar 2006
Thanks Tom
It's a great start, it never entered my mind to use the object explorer in
the VBE...but that makes a lot of sense.....

I wasn't sure about the excel template approach, because when I save a work
sheet / book...thee wasn't a similarextension entry like ".dot" ......I
suppose it wouldn't make sense anyway....

Thanks for the link Tom I'll have a look.
Best Wishes
Dermot



"Tom Ogilvy" wrote:

> Question 1
> Can anyone tell me the appropriate code to open the Excel Template Dialog?
>
> Excel doesn't use templates like Word, so there probably isn't one
>
> But the commands to show builtin dialogs are similar
>
> Application.Dialogs(xldialogprint).Show
>
> Question 2
> Where will I get a list of Excel command as they are used within code...i.e
> wdDialogFileNew as use in the Word example above?
>
> Use the object explorer in the VBE, same as in word
>
> Question 3
> Any general advice / links regarding useful Excel macros to consider
> incorporating in excel spreadsheets?
>
> This group
> http://www.cpearson.com/Excel.htm
> see the topics and pages index (Chip Pearson)
>
> http://www.j-walk.com/ss/excel (John Walkenback)
> see Tips/ developer tips
>
> http://www.contextures.com/tiptech.html (Debra Dalgleish's site)
>
> Obviously the more you know about Excel itself, the better you will be able
> to program its capabilities.
>
> --
> Regards,
> Tom Ogilvy
>
>
>
>
> "Dermot" <(E-Mail Removed)> wrote in message
> news:19902DC4-F74B-4028-B9BA-(E-Mail Removed)...
> > I am experimenting with macros.........
> > I use the following macro to open the Word Template Dialog.
> >
> > Sub AutoExec()
> > '
> > ' AutoExec Macro to open the template Dialogue Box
> > ' Macro created 25/02/2006 by Dermot Hayes
> > '
> > Dialogs(wdDialogFileNew).Show
> >
> > End Sub
> >
> > Question 1
> > Can anyone tell me the appropriate code to open the Excel Template Dialog?
> >
> > Question 2
> > Where will I get a list of Excel command as they are used within

> code...i.e
> > wdDialogFileNew as use in the Word example above?
> >
> > Question 3
> > Any general advice / links regarding useful Excel macros to consider
> > incorporating in excel spreadsheets?

>
>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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 Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Code to run dialogue box at workbook startup Doo0592 Microsoft Excel Programming 8 1st Sep 2006 09:30 AM
Automate a menu dialogue box at startup from a template =?Utf-8?B?Q29saW5ocA==?= Microsoft Powerpoint 3 2nd Dec 2005 01:02 AM
How do you open a template at startup? =?Utf-8?B?SmFtZXMgS2VuZGFsbA==?= Microsoft Excel Misc 7 26th Jul 2005 07:33 PM
Need VBA code for "Open Dialogue" box =?Utf-8?B?QnJlbnQgRQ==?= Microsoft Excel Misc 2 8th Feb 2005 04:23 AM
Cannot open Template Wizard on startup Robbo Microsoft Excel Setup 0 11th Feb 2004 07:24 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:07 AM.