Using Excel VBA: sending output data table to created .csv file +append Options

M

Mike

Hi everyone,

Say I have already XVar.csv file and using MS VB I want to automate
writing a data vector X[a,b,c] to XVar.csv or appending it to already
existing table in XVar.csv

How this could be written in a simple vba code?

Thanks,
Mike
 
J

James Ravenswood

Hi everyone,

Say I have already XVar.csv file and using MS VB I want to automate
writing a data vector X[a,b,c] to XVar.csv or appending it to already
existing table in XVar.csv

How this could be written in a simple vba code?

Thanks,
Mike

Sub UpdateCSV()
Open "C:\TestFolder\junk\AA.csv" For Append As #1
Print #1, "Hello World"
Close #1
End Sub
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top