Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Try this code. Put your csv file into a folder called temp on the C drive.
Sub TextImporter() myFile = Dir("C:\temp\*.csv") Do Until myFile = "" Workbooks.OpenText Filename:="C:\temp\" & myFile, DataType:=xlDelimited, Space:=True ActiveSheet.Name = myFile myFile = Dir() Loop Charts.Add End Sub HTH, Greg "Tony" wrote in message ... I am ready to rip my hair out. The following is the code: Sub Make_Chart1() Infile = {name of .csv file being input to routine - deleted for the discussion} Workbooks.Open _ Filename:= Infile Charts.Add {{{ Error occurs here} ... --- When I open Excel to this macro, I crash at the "Charts.Add" Line with a "Type Mismatch", although it DOES add the sheet! How do I get past this fershluggina error??? (BTW: I tried recording PRECISELY the same sequence in Macro, then when I replayed the sequence I got the same error!!!) PLEASE Help! |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
creating an new excel document (2002) to work out dates | Excel Discussion (Misc queries) | |||
Excel 2002 Zero Values in Charts | Charts and Charting in Excel | |||
Creating charts in Excel... | Excel Discussion (Misc queries) | |||
Displaying charts from excel 2003 in excel 2002? | Excel Discussion (Misc queries) | |||
Creating custom colours in Excel 2002 | Excel Discussion (Misc queries) |