Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default calling Word from an .xlm macro: how to?

Dear all,

I've been using an Excel application for many years now (since 1994 or so) ,
which employs an .xlm file full of macro's.
On of the things it does is call Word for prinitng purposes. Specifically,
after opening Word, it tells word to open a new file based on template
TMPLT, like this:

=FILE.EXECUTE(0;[FileNew.template ="TMPLT"])

This worked fine in Wordbasic times, i.e. up to and including Word 95, of
which I kept a copy around for many years especially for this purpose.
However, that is no longer an option now.

If I try to run my macro against current Word, I get an error like "function
not supported by object", and tracing it yields a temporary VB-module
which contains only this:

Private Sub TmpDDE()
WordBasic.Call "FileNew.template" = "TMPLT"
End Sub

That does not get me anywhere. So what am I to do?

All help very much appreciated!

RS
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
Calling Excel from Word with parameters DoctorG Excel Discussion (Misc queries) 4 July 12th 05 07:53 AM
Calling an XLA macro from code Chrissy[_4_] Excel Programming 2 October 11th 03 04:38 PM
Calling Word function from within Excel Ed[_9_] Excel Programming 1 September 17th 03 11:47 PM
Calling macro in add-in. Clark B Excel Programming 1 July 24th 03 11:05 PM
calling word Heiko Excel Programming 0 July 9th 03 06:32 AM


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

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

About Us

"It's about Microsoft Excel"