ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Data from CSV to Excel (https://www.excelbanter.com/excel-discussion-misc-queries/110962-data-csv-excel.html)

prakash

Data from CSV to Excel
 
Hi Experts,

1. User has a product, which has feature to export data only into CSV.
2. In Excel, I have written a VB Macro to format the data/generate certain
reports.
3. Is there away out to Import/Copy data Programatically using VBMacro from
CSV to Excel so my VB Macro will work and generate reports.

Thanks in advance

Gary''s Student

Data from CSV to Excel
 
Workbooks.Open Filename:="C:\x.csv"

You will substitute your path and filename.
--
Gary's Student


"Prakash" wrote:

Hi Experts,

1. User has a product, which has feature to export data only into CSV.
2. In Excel, I have written a VB Macro to format the data/generate certain
reports.
3. Is there away out to Import/Copy data Programatically using VBMacro from
CSV to Excel so my VB Macro will work and generate reports.

Thanks in advance


Pete_UK

Data from CSV to Excel
 
The easiest way to get to know the syntax is to go through the exercise
once with the Marcro Recorder turned on and to manually select the file
for import (or just File | Open). After you have finished recording,
you can view the recorded code to see how it would need to be amended
to suit a more general situation (like specifying a different filename
each time you run it) and calling your existing macro.

Hope this helps.

Pete

Prakash wrote:
Hi Experts,

1. User has a product, which has feature to export data only into CSV.
2. In Excel, I have written a VB Macro to format the data/generate certain
reports.
3. Is there away out to Import/Copy data Programatically using VBMacro from
CSV to Excel so my VB Macro will work and generate reports.

Thanks in advance




All times are GMT +1. The time now is 08:22 AM.

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