ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Importing a CSV file, would like to skip first row in Excel (https://www.excelbanter.com/excel-discussion-misc-queries/132364-importing-csv-file-would-like-skip-first-row-excel.html)

abright52

Importing a CSV file, would like to skip first row in Excel
 
I am trying to import a CSV file that is generated as a log on a
machine that we have. I have created my own custom headings for the
columns in the first row of the Excel Doc. I am able to import
starting on the second row of the CSV file to remove the existing
headings, but the data still overwrites my headings since it wants to
start the import on the first row of the Excel file.

I cannot edit the existing headings that the machine outputs in the
logs. I would like to find a solution that is as user-friendly as
possible.

Thanks in advance.


Bernie Deitrick

Importing a CSV file, would like to skip first row in Excel
 
abright,

Import the whole file (including the header row), then use code like this to
put in your desired headings:

Range("A1").Value = "Heading for column A"
Range("B1").Value = "Heading for column B"

etc...

HTH,
Bernie
MS Excel MVP



"abright52" wrote in message
oups.com...
I am trying to import a CSV file that is generated as a log on a
machine that we have. I have created my own custom headings for the
columns in the first row of the Excel Doc. I am able to import
starting on the second row of the CSV file to remove the existing
headings, but the data still overwrites my headings since it wants to
start the import on the first row of the Excel file.

I cannot edit the existing headings that the machine outputs in the
logs. I would like to find a solution that is as user-friendly as
possible.

Thanks in advance.





All times are GMT +1. The time now is 10:04 PM.

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