LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.charting
external usenet poster
 
Posts: 1
Default Problem changing chartype using Chartwizard in VB Express

Hi,

I am trying to create a line graph using a Microsoft VB Express module.

I can get the grpah to appear with labels etc however I cannot change the
chart type to line(or any other type).
Below is the segment of code I have to display the graph:

With oBook.ActiveSheet.ChartObjects.Add _
(Left:=100, Width:=375, Top:=75, Height:=225)
.Chart.ChartWizard(Source:=oBook.ActiveSheet.Range ("C4:C10"),
Gallery:=xlLine, Title:="TEST", _
ValueTitle:="# of trans", CategoryTitle:="tps")
End With


The error I get is " Name 'xlLine' is not declared.

What I dont understand is that the Title,ValueTitle,CategoryTitle properties
all work fine but I get the error on the Gallery property.

Any suggestions appreciated.
--
KT
 
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
ChartWizard Gabi Charts and Charting in Excel 2 January 27th 07 04:01 PM
chart.ChartWizard always failed in excel2k7 Buddhist[CHinA] Charts and Charting in Excel 0 November 16th 06 02:00 AM
range from worksheet ala chartwizard Will Eichert Charts and Charting in Excel 2 February 10th 05 07:31 PM
I am having a problem opening up an attachment in Outlook Express. Kathy Excel Discussion (Misc queries) 1 January 16th 05 01:22 AM


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