Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
I am writing code to import text files and set column formats in Office XP. I tried (goal is to set column 1 and 6 to Text Format): Workbooks.OpenText Filename:=.FoundFiles(i), startrow:=2, DataType:=xlDelimited, _ Tab:=True, FieldInfo:=Array(Array(1, 2), Array(6, 2)) With this, Column 1 and 2 become Text instead of 1 and 6. I want to format the columns properly before I bring any data in - so formatting after the import is too late for my data. What am I doing wrong? Thanks, Brij |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Format changes from "General" to "Text" | Excel Discussion (Misc queries) | |||
Multiple "source" workbooks linked to single "destination" workboo | Excel Worksheet Functions | |||
how do I format some text....."abc123" into "abc 123" | Excel Discussion (Misc queries) | |||
Excel VBA to convert "dd.MM.yy" text to "dd/MM/yyyy" format date? | Excel Programming | |||
use variable in Workbooks("book1").Worksheets("sheet1").Range("a1" | Excel Programming |