Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 134
Default Open Non-Excel file

Hi,

can you tell me how to open a non-excel file from within Excel

eg. a .txt-file or what I want to do is running an access database .mdb file

the shell-option does not work since it are not applications but documents.

Thanks
Jos Vens


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 222
Default Open Non-Excel file

"Jos Vens" wrote:

Hi,

can you tell me how to open a non-excel file from within Excel

eg. a .txt-file or what I want to do is running an access database .mdb file

the shell-option does not work since it are not applications but documents.

Thanks
Jos Vens


In Excel 2000 select DataGet External Data then choose the data type from
the dialog. I expect the method is similar for other versions
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 134
Default Open Non-Excel file

Hi,

I don't want to import data in Excel, I want to start a whole
access-application (not compiled, just a mdb-file). I'd like to open the
document "lvs.mdb", rather than to open first access (shell-function), then
open the .mdb file from within access.

I do not want to import data from the .mdb file into excel!

Jos

"bigwheel" schreef in bericht
...
"Jos Vens" wrote:

Hi,

can you tell me how to open a non-excel file from within Excel

eg. a .txt-file or what I want to do is running an access database .mdb
file

the shell-option does not work since it are not applications but
documents.

Thanks
Jos Vens


In Excel 2000 select DataGet External Data then choose the data type from
the dialog. I expect the method is similar for other versions



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,391
Default Open Non-Excel file

Jos,
Well, you cannot open an .mdb file in Excel.

If you mean to open an .mdb file from Excel, then you can still use Shell,
with the command line argument set to the file and optionally username,
password, workgroup mdb etc

NickHK

"Jos Vens" wrote in message
...
Hi,

I don't want to import data in Excel, I want to start a whole
access-application (not compiled, just a mdb-file). I'd like to open the
document "lvs.mdb", rather than to open first access (shell-function),

then
open the .mdb file from within access.

I do not want to import data from the .mdb file into excel!

Jos

"bigwheel" schreef in bericht
...
"Jos Vens" wrote:

Hi,

can you tell me how to open a non-excel file from within Excel

eg. a .txt-file or what I want to do is running an access database .mdb
file

the shell-option does not work since it are not applications but
documents.

Thanks
Jos Vens


In Excel 2000 select DataGet External Data then choose the data type

from
the dialog. I expect the method is similar for other versions





  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 134
Default Open Non-Excel file

I guess you mean I have to open access with the shell-function and give the
argument of the filename I want to open (eg. c:\lvs.mdb).

Is there a means to know the fullname (path) of Access.exe?

Thanks for your reply
Jos



"NickHK" schreef in bericht
...
Jos,
Well, you cannot open an .mdb file in Excel.

If you mean to open an .mdb file from Excel, then you can still use Shell,
with the command line argument set to the file and optionally username,
password, workgroup mdb etc

NickHK

"Jos Vens" wrote in message
...
Hi,

I don't want to import data in Excel, I want to start a whole
access-application (not compiled, just a mdb-file). I'd like to open the
document "lvs.mdb", rather than to open first access (shell-function),

then
open the .mdb file from within access.

I do not want to import data from the .mdb file into excel!

Jos

"bigwheel" schreef in bericht
...
"Jos Vens" wrote:

Hi,

can you tell me how to open a non-excel file from within Excel

eg. a .txt-file or what I want to do is running an access database
.mdb
file

the shell-option does not work since it are not applications but
documents.

Thanks
Jos Vens


In Excel 2000 select DataGet External Data then choose the data type

from
the dialog. I expect the method is similar for other versions









  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 108
Default Open Non-Excel file

Roedd <<Jos Vens wedi ysgrifennu:

I guess you mean I have to open access with the shell-function and
give the argument of the filename I want to open (eg. c:\lvs.mdb).

Is there a means to know the fullname (path) of Access.exe?


If you use the shellexecute API you don't need to know anything about the
app:

Private Declare Function ShellExecute Lib "shell32.dll" Alias
"ShellExecuteA" _
(ByVal hwnd As Long, ByVal lpOperation As String, ByVal lpFile As
String, _
ByVal lpParameters As String, ByVal lpDirectory As String, _
ByVal nShowCmd As Long) As Long

'Open the default program for sending email messages
Sub OpenFileInDefaultApp(FullName As String)
ShellExecute 0, vbNullString, FullName, 0&, 0&, 1
End Sub

Sub test()
OpenFileInDefaultApp "C:\odbcconf.log"
End Sub

--
Rob

http://www.asta51.dsl.pipex.com/webcam/

This message is copyright Robert Bruce and intended
for distribution only via NNTP.
Dissemination via third party Web forums with the
exception of Google Groups and Microsoft Communities
is strictly prohibited and may result in legal action.


  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 108
Default Open Non-Excel file

Roedd <<Robert Bruce wedi ysgrifennu:

Ignore this comment. I forgot to delete it when i
adjusted the example to better meet the question.

'Open the default program for sending email messages


--
Rob

http://www.asta51.dsl.pipex.com/webcam/

This message is copyright Robert Bruce and intended
for distribution only via NNTP.
Dissemination via third party Web forums with the
exception of Google Groups and Microsoft Communities
is strictly prohibited and may result in legal action.


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
excel 2003 saved file will not open without a blank workbook open Bob Excel Discussion (Misc queries) 4 November 11th 06 04:24 PM
In Excel - Use Windows Explorer instead of File Open to open file KymY Excel Discussion (Misc queries) 1 August 5th 06 09:59 PM
Can Excel open a new application every time you open a file? shoon Setting up and Configuration of Excel 0 December 13th 05 03:28 PM
Open email windows can't open, excel shreadsheet file .xls ? skiz Excel Discussion (Misc queries) 0 October 2nd 05 07:03 PM
How do I stop Excel from closing the open file each time I open a. Welsin Setting up and Configuration of Excel 3 January 8th 05 11:16 PM


All times are GMT +1. The time now is 09:25 AM.

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"