How to suppress blank workbook when opening file

  • Thread starter Thread starter Mac
  • Start date Start date
M

Mac

Whenever I double-click an existing Excel file to open it,
a blank workbook opens. How do I suppress this?
 
Does the double-clicked file open as well as a blank workbook, or only
a blank workbook? What OS are you using? Are you running it on a Mac
or PC for that matter? I shouldn't even attempt an answer without any
information, but here goes:

Assuming you are running Excel in some version of Windows:

You probably need to modify the command to start Excel in the File
Types dialog. (From Windows Explorer, Tools>Folder Options or
View>Folder options depending on your OS. Click the File types tab
and select XLS files. Click Advanced, Select 'open' in the list and
click 'Edit'. You will see the command line used to start Excel.
Scroll to the right so you can see the end of the command.

It should be "C:\YourPath\to\excel\excel.exe" /e $1

Note: If you see the '$1' in another box labeled 'DDE message', do not
include it on the command line. (Windows 2000 may use this format)

The /e is what you are interested in. It opens an Excel session with
no blank workbook. The $1 is replaced by the name of your file, which
will open with Excel. 'c:\YourPath\to\excel\excel.exe' will actually
show the path to your Excel installation, which is obviously correct
because Excel opens when you click a file. Leave this part alone!

-Mike


Whenever I double-click an existing Excel file to open it,
a blank workbook opens. How do I suppress this?

Mike Argy
Custom Office Solutions
and Windows/UNIX applications

Please post on-topic responses to the newsgroup

To e-mail me, remove nospam from the address in the headers
 
Any chance you have something in your XLStart folder.

I have sheet.xlt and book.xlt and I don't get an empty workbook when I
doubleclick a file to start excel. (I use xl2002).
 
That's what I meant. Oops!

thanks for catching it..



Mike

For the record..........%1 not $1

Mike Argy
Custom Office Solutions
and Windows/UNIX applications

Please post on-topic responses to the newsgroup

To e-mail me, remove nospam from the address in the headers
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top