Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 48
Default Loading data table in a Workbook template

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!
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,718
Default Loading data table in a Workbook template

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

--
Jim Rech
Excel MVP
"Bing" wrote in message
...
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!



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Copy Filterd Data from worksheet to another workbook template Kenny Excel Discussion (Misc queries) 1 October 2nd 07 01:13 PM
Shared Workbook not loading Richard M Burton Excel Discussion (Misc queries) 2 May 22nd 07 08:45 PM
How do I append data to an Excel workbook using a template? Statman Excel Discussion (Misc queries) 2 May 31st 06 06:58 PM
Data transfer from a template to a workbook Nick Excel Worksheet Functions 0 April 20th 06 05:26 PM
loading a template from the network on toolbar kurt Excel Programming 0 October 1st 03 09:48 AM


All times are GMT +1. The time now is 06:24 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"