Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / New Users / January 2007

Tip: Looking for answers? Try searching our database.

Excel --- Physical dimensions of a chart object

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Nimmi Srivastav - 21 Jan 2007 01:38 GMT
Is there a way to know the physical dimensions of a chart object on a
worksheet?  I have data in several worksheets and I would like all my
charts to be of the same size (obviously this means that data with a
smaller range of values will be more spread out than data with a larger
range of values).

Thanks,
Nimmi
Gary''s Student - 21 Jan 2007 13:17 GMT
This is just an example:

Sub Macro2()
   ActiveSheet.ChartObjects("Chart 1").Activate
   ActiveChart.ChartArea.Select
   n = ActiveSheet.Shapes("Chart 1").Width
   m = ActiveSheet.Shapes("Chart 1").Height
   MsgBox (n & " BY " & m)
End Sub

Note that you have to activate the chart AND select the ChartArea.
Signature

Gary''s Student
gsnu200702

> Is there a way to know the physical dimensions of a chart object on a
> worksheet?  I have data in several worksheets and I would like all my
[quoted text clipped - 4 lines]
> Thanks,
> Nimmi

Rate this thread:






 
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.