Import CSV File with FileDialog in Excel VBA

preview_player
Показать описание
In this video, I will demo how to Import CSV File with FileDialog in Excel VBA

======================================================
======================================================
======================================================
======================================================
======================================================
======================================================
======================================================
======================================================
======================================================
======================================================
Check out our new online store for some programming merchandise!
Рекомендации по теме
Комментарии
Автор

The nice thing about silent movies is you get straight to point and leave out all the noise. Plus it a good video.

quintonballenden
Автор

My CSV file has some text in one of the cells wrapped which is causing problems when importing using the code below. Do you know what changes I would need to make to the code to unwrap the text from the source CSV file (Column N)


Set ws = 'destination sheet where CSV file will be imported
strFile = Files (*.csv), *.csv", , "Please select text file...") 'prompt to open the CSV file


With & strFile, Destination:=ws.Range("A1"))
'When this line runs its already too late as the wrapped text is imported, how do I unwrap the text either before running this line or can it be unwrapped with more code added on this line?
.TextFileParseType = xlDelimited
.TextFileCommaDelimiter = True
.Refresh
End With

ratnoinamaew
Автор

Thanks for uploading such informative video. just a question, I'm getting an error application define error on line
Application.Range("products").Cells(row_number, 1).Value = LineItems(0)
Although I name a column a1 as products. Again thanks for your advise

beyondthenature
Автор

Hi, I have a csv file with data with column names, my requirement is I need to import the CSV to a page another machine, and the data in my CSV should be appended to the particular column only if the column names are same in both my CSV and tht page.Can you please help.me to write this logic

apoorvabhatt
Автор

Not optimal for multiple records (2k+) or extensive columns

LuvLDZ
Автор

can i download the sourcecode from this video

marcbeirens
Автор

you dont know how to talk? or how to record audio?

vijax