View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Ramesh Narasimhan Ramesh Narasimhan is offline
external usenet poster
 
Posts: 3
Default opentext command

I am trying to open a text file as part of the workbook_open event handler.
when i manually import the text by dragging the .dat file into the workbook,
it (correctly) neglects carriage returns within fields, writing them as a
hollow square. However, when I import the text through the VBA command
opentext, it treats the carriage return as if it is the beginning of a new
record and everything goes haywire. are there specific paramters i can pass
in with opentext to have it do what the program does when i drag and drop??
thanks.