ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   How to call the TextImportWizard? (https://www.excelbanter.com/excel-programming/280355-how-call-textimportwizard.html)

Tom

How to call the TextImportWizard?
 
Hi

Is it possible to call the TextImportWizard with vba? If yes, how to do?

Tom



Dave Peterson[_3_]

How to call the TextImportWizard?
 
I think you could open a text file and import it to only column A. Then show
that dialog.

Option Explicit
Sub testme()

Dim myFileName As Variant

myFileName = Application.GetOpenFilename("Text files, *.txt")

If myFileName = False Then
Exit Sub
End If

Workbooks.Open Filename:=myFileName

Range("a:a").Select
Application.Dialogs(xlDialogTextToColumns).Show

End Sub


Tom wrote:

Hi

Is it possible to call the TextImportWizard with vba? If yes, how to do?

Tom


--

Dave Peterson



All times are GMT +1. The time now is 10:08 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com