![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
New Member
Join Date: Feb 2002
Posts: 40
|
I have a command button that will search for and open specifically named files. These files are text documents is there a way to delimit automatically in the macro? (From tab to other with character'|')
Thanks |
|
|
|
|
|
#2 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Sydney, Australia
Posts: 2,908
|
You can specify the delimiting character when using Workbooks.Opentext. To get a better explanation type Opentext into Excel's VB help but this should get you going:-
Code:
Workbooks.OpenText Filename:="C:temptest.txt", DataType:=xlDelimited, other:=True, otherchar:="|" D |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|