Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 137
Default AutoExec Code to Open Template Dialogue on Startup

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?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default AutoExec Code to Open Template Dialogue on Startup

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" wrote in message
...
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?



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 137
Default AutoExec Code to Open Template Dialogue on Startup

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" wrote in message
...
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
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
When i open excel on the start dialogue, it does not open. lemon8 Setting up and Configuration of Excel 1 December 14th 05 05:37 AM
Excel/Word startup: 'Compile error in hidden module: AutoExec' ?? dozer Excel Discussion (Misc queries) 1 September 17th 05 01:55 AM
How do you open a template at startup? James Kendall Excel Discussion (Misc queries) 7 July 26th 05 07:33 PM
Need VBA code for "Open Dialogue" box Brent E Excel Discussion (Misc queries) 2 February 8th 05 04:23 AM
Excel template-run code on open Cindy Excel Programming 0 January 28th 04 04:19 PM


All times are GMT +1. The time now is 01:51 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"