Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 53
Default Excel Command line

Hi,

I have an XLA which I start with the following way.

Exce <Name & Path of XLA /e<Name & path of the template

/e prevents Excel from showing the startup scree and opening blank worksheet.

The XLA receives the command line parameter and retrieves the Template name
and path and opens it and works on it.

The problem is when this <Name & path of the template has spaces in it then
Excel shows error below message.
<part of the Name & path of the template till the first space could not be
found. Check the spelling of the filename, and verify that the file location
is correct.

If you are trying to open the file from your list of most recently used
file on the File menu, make sure that the file has not been renamed, moved or
deleted.

Any help on this appreciated.

Thanks,
Anand

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,058
Default Excel Command line

In general, use double quotes:

"c:\program files\microsoft office\office11\excel"

etc.
--
Gary''s Student - gsnu200844


"Anand Nichkaode" wrote:

Hi,

I have an XLA which I start with the following way.

Exce <Name & Path of XLA /e<Name & path of the template

/e prevents Excel from showing the startup scree and opening blank worksheet.

The XLA receives the command line parameter and retrieves the Template name
and path and opens it and works on it.

The problem is when this <Name & path of the template has spaces in it then
Excel shows error below message.
<part of the Name & path of the template till the first space could not be
found. Check the spelling of the filename, and verify that the file location
is correct.

If you are trying to open the file from your list of most recently used
file on the File menu, make sure that the file has not been renamed, moved or
deleted.

Any help on this appreciated.

Thanks,
Anand

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 53
Default Excel Command line

Thanks for the response.

I missed to mention in my last post that putting things in dobule quotes
does not help.

-Thx
Anand

"Gary''s Student" wrote:

In general, use double quotes:

"c:\program files\microsoft office\office11\excel"

etc.
--
Gary''s Student - gsnu200844


"Anand Nichkaode" wrote:

Hi,

I have an XLA which I start with the following way.

Exce <Name & Path of XLA /e<Name & path of the template

/e prevents Excel from showing the startup scree and opening blank worksheet.

The XLA receives the command line parameter and retrieves the Template name
and path and opens it and works on it.

The problem is when this <Name & path of the template has spaces in it then
Excel shows error below message.
<part of the Name & path of the template till the first space could not be
found. Check the spelling of the filename, and verify that the file location
is correct.

If you are trying to open the file from your list of most recently used
file on the File menu, make sure that the file has not been renamed, moved or
deleted.

Any help on this appreciated.

Thanks,
Anand

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
Are there command line parameters for Excel? Michael Excel Discussion (Misc queries) 9 August 5th 07 06:29 PM
Print an excel file from command line or "cron" type command ??? Chris Salcedo Excel Programming 2 March 28th 07 01:10 AM
How to Get Excel Command Line Programmatically Drew Lettington Excel Programming 4 June 28th 06 11:25 PM
Excel command line Jef Gorbach Excel Programming 5 June 29th 05 04:01 AM
Run Excel Macro from Command Line Al Franz Excel Programming 3 June 13th 05 08:18 AM


All times are GMT +1. The time now is 07:51 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"