473,387 Members | 1,481 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Using the RunApp Macro Command

Hi:

I am attempting to set up a process in Access that calls a spreadsheet, executed the macro
in the spreadsheet, and then returns control to the next line of the macro in Access.

I am not even getting to first base.

The command I am using is : RunApp, with the path parameter:
D:\Userdata\IPT\Accounting\Solution Sheets\ti1.xls

I know this path is correct, but I am getting back an error that says:
Microsoft Access Cant invoke the application using the RunApp Action.
The path to the application is invalid.

The application is in the same folder as the Access application, but it just does not
appear to be finding it. Is it case sensitive? I have all the cases and things right.

Can anyone offer pointers?

Regards

John Baker
Nov 12 '05 #1
4 24486
Use this line instead:

EXCEL.EXE D:\Userdata\IPT\Accounting\Solution Sheets\ti1.xls
Nov 12 '05 #2
Thanks:

Since they were all in the same folder (directory) I found i could also use

Excel.exe ti1.xls

Thanks again.. a little change but SOOO important!

Regards

John Baker
dc****@aol.comSPNOAM (DCM Fan) wrote:
Use this line instead:

EXCEL.EXE D:\Userdata\IPT\Accounting\Solution Sheets\ti1.xls


Nov 12 '05 #3
Hi,
Can you help me with this one -- I am able to open other applications with the runapp macro, but am unable to open word. Any suggestions?
Thanks.
Apr 27 '06 #4
Hi,
Can you help me with this one -- I am able to open other applications with the runapp macro, but am unable to open word. Any suggestions?
Thanks.
You need to separate the two sections of
the command line (i.e. the application program file and the document).

"C:\Program Files\Microsoft Office\Office\winword.exe" "C:\Documents and
Settings\Administrator\Application Data\Microsoft\Templates\FormLetter.dot"
May 12 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Donald 'Paddy' McCarthy | last post by:
So, for those that don't actively not-want a Python macro facility. If we are to have it what should it do? 1) Macro definitions should allow Doc strings. 2) There should be a separate statement...
0
by: Bret Shortall | last post by:
Using the SENDOBJECT action command in a Macro works fine if you hard code in their email address. SENDOBJECT TO bret@emailaddress.com SUBJECT This is the Subject line...
1
by: meganrobertson22 | last post by:
Hi Everyone- I am trying to use a simple macro to set the value of a combo box on a form, and I can't get it to work. I have a macro with 2 actions: OpenForm and SetValue. I can open my form,...
6
by: Roman Mashak | last post by:
Hello, All! I'm trying to set up macro: .... int main(int argc, char *argv, char *envp) { .... if ( argc > 1 ) { if ( strcmp(argv, "-d") == 0 ) {
4
by: Elaine | last post by:
Hi I have created a form which contains a subform. To cut a long story short, I have created a macro that moves the focus to the subform (GoToControl) and sets a value (SetValue) in the field...
3
by: martyrocks | last post by:
Hi all, i'm not very well versed with Access at all (more of a script kiddie when it comes to macros and commands) and so far, i'm able to use the runapp command to open the actual mapinfo program,...
2
by: Senthil | last post by:
Hi All I need to create an Excel report and create a command button and have to run a macro on the click event that will print all the pages in the Excel workbook. I am able to create the report...
6
by: Robertjb1 | last post by:
I've run into this issue and it started last week. I maintain numerous databases that use the RunApp action and have had no problems in the past. I currently have five databases that have a button on...
1
MitchR
by: MitchR | last post by:
Good Morning Folks; I have a question that is pretty far fetched but here goes nothing... I am looking to find a way to insert a macro into an Excel command button located in an Access VBA...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.