Loading data table in a Workbook template

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Is there a method call that will load a .csv data table in a Excel workbook
template where that template will already contain code to manipulate data?

The Workbooks.OpenText does a good job of formatting but creates an
arbitrary workbook. Is there a way to force it to use a particular template
when it creates the workbook?

The only way i can think of is to use Workbooks.Add (WorkBookTemplate), and
then have a macro on one of the sheets to read line by line the .csv file and
populate the data in a formatted way.

Any suggestsions?
Thanks!
 
I think the Opentext method followed by a copy/paste is pretty
straightforward. Of course reading in a line at a time is viable too. The
only other option to read data directly into a worksheet is the Data, Import
External Data command (as it's called in Excel 2002 and 2003; Get External
Data in 2000). You might have a look at that.

Jim
 

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

Back
Top