ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Processing Data (https://www.excelbanter.com/excel-worksheet-functions/104707-processing-data.html)

dan

Processing Data
 
Importing a text file on a line by line basis and want to modify the
file as it is being imported.

Counter = 1
Do While Seek(FileNum) <= LOF(FileNum)
Line Input #FileNum, ResultStr
If Left(ResultStr, 1) = "=" Then
ActiveCell.Value = "'" & ResultStr
Else
ActiveCell.Value = ResultStr
End If
Counter = Counter + 1
Loop

When the counter equals a specific value I want to process the data in a
different format. Want it to be entered in a Fixed Width format and also run
additional macros based on the values of the data.

Thanks


All times are GMT +1. The time now is 05:31 PM.

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