Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Modules / DAO / VBA / December 2006

Tip: Looking for answers? Try searching our database.

about chart and graph in Excel

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Amit - 15 Dec 2006 22:59 GMT
Hello,

Let's say I'm having a sheet with following  data in two columns:

1  100
2  200
3  300
4  400

when I graph it in Chart1. The bar which belongs to 100 places in the
right most part of the graph and 400 places next to 0 or origin. How
this happens?

Code:

  Dim TheChart As Chart
  Dim DataSheet As Worksheet
  Dim CatTitles As Range
  Dim SrcRange As Range
  Dim SourceData As Range
  Dim iBarIndex As Integer

  Set TheChart = Sheets("Chart1")
  Set DataSheet = Sheets("Sheet1")

  With DataSheet
      'Set CatTitles = .Range("A1:A4")
      Set SrcRange = .Range(Cells(1, Item), .Cells(4, Item))
  End With

  'Source Data
  'Set SourceData = Union(CatTitles, SrcRange)

  With TheChart
      .Activate
      .SetSourceData Source:=SrcRange, PlotBy:=xlRows  'SourceData
      .Deselect

  End With
mcescher - 17 Dec 2006 03:53 GMT
This is a group that discusses Microsoft Access, the database program.
I suggest you submit your question to an Excel group.

Chris M.

> Hello,
>
[quoted text clipped - 35 lines]
>
>    End With
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.