LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 79
Default Creating Charts in Excel 2002 (XP)

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
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
creating an new excel document (2002) to work out dates jenniss Excel Discussion (Misc queries) 5 July 14th 09 02:07 PM
Excel 2002 Zero Values in Charts Rob E Charts and Charting in Excel 2 November 25th 06 01:26 AM
Creating charts in Excel... [email protected] Excel Discussion (Misc queries) 1 July 2nd 06 06:42 AM
Displaying charts from excel 2003 in excel 2002? nick_h Excel Discussion (Misc queries) 0 May 9th 05 02:41 AM
Creating custom colours in Excel 2002 Fletch Excel Discussion (Misc queries) 2 March 1st 05 05:55 PM


All times are GMT +1. The time now is 08:30 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"