LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
Ted Ted is offline
external usenet poster
 
Posts: 48
Default How to pass arguments to an Excel macro using Dynamic Data Exchang

Background:
I'm trying to pass arguments to an Excel macro using Dynamic Data Exchange
(DDE).

I can pass arguments to this Excel macro within Excel (not using DDE) with
the following format, note the lack of parenthesis:
Application.Run "Personal.xls!MacroName", Arg1, Arg2, Arg3

I can also pass control to this Excel macro using DDE from another Office
application (Word) without arguments using the following format (note the
presence of parenthesis and brackets):
[Application.Run("Personal.xls!MacroName")]

However, when including arguments (using the above parenthesis and bracket
format) from Word, I get Error Code 4599 "Process failed in other
application."

Question:
How to pass arguments to an Excel macro using Dynamic Data Exchange (DDE)?

--
Ted
 
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
How to pass variables as arguments of a function Excel-craze Excel Worksheet Functions 1 August 12th 09 11:48 AM
small fuction problem pass arguments ina Excel Programming 3 April 25th 06 01:25 PM
How to pass arguments to vlookup in VBA mathewg Excel Programming 4 January 20th 06 12:34 PM
Run/execute VBS and pass arguments Claud Balls Excel Programming 3 February 4th 05 08:34 AM
How to pass arguments from ThisWorkbook to a UserForm strataguru[_4_] Excel Programming 1 October 7th 03 11:29 PM


All times are GMT +1. The time now is 01:35 PM.

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"