Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Is there any way I can open a text file in the workbook that the
macros is running in. Everytime I try with my code it automatically opens a new workbook. I have looked at other comments for other people but none of them work because I have a datatype and fieldinfo. This is my code to open a txt file Dim UF As Variant Dim SL As Variant UF = Application.GetOpenFilename(FileFilter:="TXT Files(*.txt),*.txt", Title:="log") Workbooks.OpenText Filename:=UF, DataType:=xlFixedWidth, FieldInfo:=Array(Array(0, 2)) |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
opentext | Excel Programming | |||
OpenText | Excel Programming | |||
opentext | Excel Programming | |||
After OpenText all pastes from external apps use format from OpenText | Excel Programming | |||
Using Workbooks.OpenText to read a tab-delimited file into a worksheet | Excel Programming |