Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default Merging a CSV and XLS file automatically

Hi,

I have a csv fles on the network derive that is being updated every night.

I need to automatically put the CSV data into the first worksheet of another
XLS file and make it available for users.

I can have a scheduled task runs and merge the CSV into the XLS file.

What would be the easiest/automated way to do that?

Thank you,
Max


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 400
Default Merging a CSV and XLS file automatically

1. Open your xls
2. Write a macro
Macro does this:
1. Reads the CSV into an ADODB.Recorsdset object (works best if the CSV has
column headers).
2. Insert a new worksheet
3. Use CopyFromReordset to send the ADODB.REcordset to the new sheet.

.... save the workbook
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default Merging a CSV and XLS file automatically

A batch job (windows scheduled task) supposed to do that. Can your solution
be called through a scheduled task?



Thanks for help,

Max


"AA2e72E" wrote in message
...
1. Open your xls
2. Write a macro
Macro does this:
1. Reads the CSV into an ADODB.Recorsdset object (works best if the CSV
has
column headers).
2. Insert a new worksheet
3. Use CopyFromReordset to send the ADODB.REcordset to the new sheet.

... save the workbook



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 225
Default Merging a CSV and XLS file automatically

Hi

It seems that you have posted the question in other newsgroup.
Someone has replied to you.

Also I think you may try to write a VB6 application which will do the same
job and the code will be similar. That is called automation.
295646 How To Transfer Data from ADO Data Source to Excel with ADO
http://support.microsoft.com/default...b;EN-US;295646


Best regards,

Peter Huang

Microsoft Online Community Support
==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.

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
Merging info from Wkbk 1 to Wkbk2 automatically avinity Setting up and Configuration of Excel 1 January 22nd 10 10:34 PM
Merging cells in shared file Erol Excel Discussion (Misc queries) 2 January 8th 09 02:00 PM
merging of data automatically ah Excel Discussion (Misc queries) 2 November 29th 07 12:44 PM
Updating or merging files, same file, they were updated independan Vanessa Excel Discussion (Misc queries) 1 September 1st 06 03:16 AM
Problems merging an excel file due to code or file problems? Cindy M -WordMVP- Excel Programming 0 September 14th 04 02:58 PM


All times are GMT +1. The time now is 10:20 PM.

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

About Us

"It's about Microsoft Excel"