Home |
Search |
Today's Posts |
#1
![]() |
|||
|
|||
![]()
Using a visual basic 6.0 I have created a tab delimiated text file, which is
an export of a Query. I what to then open this file automaticly after it is created in Excel. I've looked about and can't find anyone with a simple answer. Most questions involve macros but I'm working from a vb application to excel. How do I open Excel? |
#2
![]() |
|||
|
|||
![]()
Dim xlTmp As Excel.Application
Set xlTmp = New Excel.Application xlTmp.Workbooks.Open Fname$ I have tried the following but I get the error message: "User-defined type not defined" Fname$ Contains the path of the text file. |
#3
![]() |
|||
|
|||
![]()
I've add the excel libary to the project but it still won't open.
This time however there is no error message. |
#4
![]() |
|||
|
|||
![]()
For some reason when I us this method the file is uneditable.
When I try to open it manually I'm told that another user has set it this way. I've added to the code with test = xlTmp.Workbooks.Open(Fname$, , 0, 1, , , , , , True) which if I read the help right should have set it to editable. What is going on? And can someone please answer me! "Opyuse" wrote: Using a visual basic 6.0 I have created a tab delimiated text file, which is an export of a Query. I what to then open this file automaticly after it is created in Excel. I've looked about and can't find anyone with a simple answer. Most questions involve macros but I'm working from a vb application to excel. How do I open Excel? |
#5
![]() |
|||
|
|||
![]()
try <data< import external data and follow the wizard.
"Opyuse" wrote: For some reason when I us this method the file is uneditable. When I try to open it manually I'm told that another user has set it this way. I've added to the code with test = xlTmp.Workbooks.Open(Fname$, , 0, 1, , , , , , True) which if I read the help right should have set it to editable. What is going on? And can someone please answer me! "Opyuse" wrote: Using a visual basic 6.0 I have created a tab delimiated text file, which is an export of a Query. I what to then open this file automaticly after it is created in Excel. I've looked about and can't find anyone with a simple answer. Most questions involve macros but I'm working from a vb application to excel. How do I open Excel? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How can I save a file as a comma-delimited text file in Excel? | Excel Discussion (Misc queries) | |||
How do I view all file types permanantly when opening in Excel? | Setting up and Configuration of Excel | |||
Weekly Transaction Processing | Excel Worksheet Functions | |||
restrict opening Excel file residing on a shared drive to one user | Excel Discussion (Misc queries) | |||
Problem opening an XML file in Excel - getting "ns1:macrosPresent" | Excel Discussion (Misc queries) |