A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Word » New Users
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

DDE Commands to open a template



 
 
Thread Tools Display Modes
  #1  
Old May 8th, 2004, 08:45 AM
steve tucknott
external usenet poster
 
Posts: n/a
Default DDE Commands to open a template

Does anyone know the DDE command sequence to open a template as if it
had been clicked?
We want to be able to open a template from a third party product. If we
open winword with the template, or execute the .dot itself, they both
open the template. What we want is the same functionality as clicking
on the template gives - ie it opens a new document based on the
template.
Any ideas??


---
Message posted from http://www.ExcelForum.com/

  #2  
Old May 17th, 2004, 01:39 AM
Jay Freedman
external usenet poster
 
Posts: n/a
Default DDE Commands to open a template

Hi Steve

The command is

[REM _DDE_Direct][FileNew("%1")]

with application = WinWord and topic = System.

If you look in Windows Explorer, Tools Folder Options File Types
..DOT Advanced, you find that the default action for templates is
"New", not "Open" (which is the default for .DOC files). The command
above is for the New action.

steve tucknott wrote:

Does anyone know the DDE command sequence to open a template as if it
had been clicked?
We want to be able to open a template from a third party product. If we
open winword with the template, or execute the .dot itself, they both
open the template. What we want is the same functionality as clicking
on the template gives - ie it opens a new document based on the
template.
Any ideas??



--
Regards,
Jay Freedman
Microsoft Word MVP FAQ: http://www.mvps.org/word
 




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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


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


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.