F
fredm54
Hello !!!
I have an external program that generates data files in CSV format
Column A contains my data and Column E contain time of day values i
24hr:min:sec format (22:12:30) The CSV gets updated every 10 second
and no 2 rows have the same time value. After the CSV is closed I nee
to do the following...
Open a worksheet (excel 2000) with a macro already loaded.
Run the macro which prompts the user to load a CSV file.
Search column E for the time value 22:00:00
If not found then select E1
Search column E for the time value 04:00:00
If not found select the last cell in column E
Create a range between these 2 cells in column E
Now offset -4 columns and create a similar range in column A
Now create a line chart (on a new sheet) with these 2 ranges wit
column E being the Category X Axis labels and column A being the dat
range.
Also the chart title needs to be the name of the CSV file that wa
loaded (without the .CSV extention)
Now for a bonus, can the worksheet be saved with just the chart sheet
I then need to email this to several recipients and all that data migh
tend to make the file quite large (not to mention it will probabl
confuse some!). I use Outlook 2000 and will send this to a persona
distribution list that I have in my address book.
If the chart can't be saved seperately then could we delete all th
other cells (except for the 2 ranges) and save the file with a modifie
name (append a character or something)?
I hope I included enough information and also that someone will se
this as any easy task!
thanks!
Fre
I have an external program that generates data files in CSV format
Column A contains my data and Column E contain time of day values i
24hr:min:sec format (22:12:30) The CSV gets updated every 10 second
and no 2 rows have the same time value. After the CSV is closed I nee
to do the following...
Open a worksheet (excel 2000) with a macro already loaded.
Run the macro which prompts the user to load a CSV file.
Search column E for the time value 22:00:00
If not found then select E1
Search column E for the time value 04:00:00
If not found select the last cell in column E
Create a range between these 2 cells in column E
Now offset -4 columns and create a similar range in column A
Now create a line chart (on a new sheet) with these 2 ranges wit
column E being the Category X Axis labels and column A being the dat
range.
Also the chart title needs to be the name of the CSV file that wa
loaded (without the .CSV extention)
Now for a bonus, can the worksheet be saved with just the chart sheet
I then need to email this to several recipients and all that data migh
tend to make the file quite large (not to mention it will probabl
confuse some!). I use Outlook 2000 and will send this to a persona
distribution list that I have in my address book.
If the chart can't be saved seperately then could we delete all th
other cells (except for the 2 ranges) and save the file with a modifie
name (append a character or something)?
I hope I included enough information and also that someone will se
this as any easy task!
thanks!
Fre