English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

Can you import more than one .ASCII file at a time in Microsoft Excel? Or only one at a time?

Thanks,

2006-09-21 04:46:45 · 4 answers · asked by rock n roll maiden 1 in Computers & Internet Software

4 answers

Of course you can!
You just need to use the following VBA code:

' //
' // Start Code
' //
Sub rocknrollmaiden()
Dim szFile As Variant

szFile = Application.GetOpenFilename _
(FileFilter:="All files (*.*), *.*", _
Title:="Open Files", MultiSelect:=True)

If IsArray(szFile) = True Then
For File_Counter = 1 To UBound(szFile)
Application.Workbooks.Open szFile(File_Counter)
Next File_Counter
End If
End Sub
' //
' // End Code
' //

Voila!
Where's my 10 points?
:)

2006-09-21 06:01:02 · answer #1 · answered by f 3 · 0 0

Only one at a time.

2006-09-21 04:59:06 · answer #2 · answered by Amit 1 · 0 1

on condition which you have get admission to open in any respect circumstances, and function somebody a minimum of click one button. or you will could write a software to do it and function homestead windows run this technique on a daily basis. In a module, positioned DoCmd.TransferSpreadsheet acImport, 8, "tablename", "C:workbook.xls", real, "sheetname!" replace your xls report call, the sheet call (go away the ! after it) and the call of the table to import it to. (you could positioned greater desirable than a million line in a module in case you have greater desirable than a million sheet, or greater desirable than a million workbook, to import.) click the final-pointing arrow icon, or press F5, to run. to date as writing a software to do it, you're on your very own - there is not any longer sufficient room right here for the code for a whole software (and that i earn my living writing issues like that).

2016-12-12 12:19:36 · answer #3 · answered by moncalieri 4 · 0 0

only one at a time mate.

2006-09-21 04:50:38 · answer #4 · answered by london lady 5 · 0 1

fedest.com, questions and answers