krissz

Board Regular
Joined
Feb 21, 2010
Messages
95
I am trying to use Excel as an interface between CSV files & Word using the 2003 version, the function of Excel being to properly format the data before import into Word.
If anybody can suggest a simpler way, I would be happy to try.
The process is as follows:
- CSV files are updated every night
- I then need to do the following automatically from say a Batch file
*- Open Excel
*- Refresh all worksheets
*- Automatically close Excel (but NOT if opened manually)
I am fairly confident that I can write most of the necessary VBA code needed in Auto_Open or Open Event, but:
?? How can I deal with an unknown number of worksheets ?
?? how can I automaticall save & close is auto-opened, but not when manually ?
Also
Since I have some control of the CSV date, can I embed any format (or other) data within the CSV ?
Many Thanks
Kris
 

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result

Forum statistics

Threads
1,215,875
Messages
6,127,477
Members
449,385
Latest member
KMGLarson

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top