Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Import Data, using a command line switch


Hello all.

I would like to know if it is possible to open a comma delimited text file
without going through the import data wizard.
I want to be able to use a command line switch or if there are default
import settings that I can set so that when i have Excel open the text file
it will import it correctly without any user input.

Thank you for you reading :D

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,049
Default Import Data, using a command line switch


try this

Sub OpenAFile()

Dim fname As String

fname = Application.GetOpenFilename(("Text Files (*.csv), *.csv"))

Workbooks.Open fname

End Sub

at least on my pc, Vista and excel 2003, it just opens without any wizardry

"§ Balisteor." <§ wrote in message
...
Hello all.

I would like to know if it is possible to open a comma delimited text file
without going through the import data wizard.
I want to be able to use a command line switch or if there are default
import settings that I can set so that when i have Excel open the text
file
it will import it correctly without any user input.

Thank you for you reading :D

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
Import Data, using a command line switch Balisteor Excel Discussion (Misc queries) 4 July 7th 09 06:46 PM
What is the command-line print switch in Excel? eeidfn Excel Discussion (Misc queries) 5 February 17th 06 11:59 PM
shortcut with command line switch probs solotoo Excel Discussion (Misc queries) 1 November 11th 05 03:41 PM
Is there a command line "switch" To close Excel Randy Wayne Excel Discussion (Misc queries) 2 August 22nd 05 09:58 PM
Read only command line switch Mike K Excel Discussion (Misc queries) 2 January 2nd 05 03:57 PM


All times are GMT +1. The time now is 11:58 PM.

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"