Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 18
Default Placement of charts

I am making a macro that generates charts and text that are to be placed on a
new worksheet. I want to be able to write code so that the charts are placed
in a certain way on the new worksheet. I do not know how to write this and it
wont be possible to record a macro for this because I want to be able to
write it in the code so that I can change position easiliy. My code now is:

Charts.Add
ActiveChart.ApplyCustomType ChartType:=xlUserDefined, TypeName:="Standard"
'ActiveChart.ChartType = xlColumnClustered
ActiveChart.SetSourceData Source:=Sheets(s).Range(rng2.Offset(i,
0).Address & ":" & rng2.Offset(j, 0).Address & "," & rng3.Offset(i,
0).Address & ":" & rng3.Offset(j, 0).Address), PlotBy:=xlColumns
ActiveChart.SeriesCollection(1).XValues = Sheets(s).Range(rng1.Offset(i,
0).Address, rng1.Offset(j, 0).Address)
ActiveChart.Location Whe=xlLocationAsObject, Name:=x
With ActiveChart
.HasTitle = True
.Axes(xlCategory, xlPrimary).HasTitle = True
.Axes(xlValue, xlPrimary).HasTitle = True
End With

I dont know where and how to write the code for the placement in the
worksheet. Please help me!
Reply
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
Cursor Placement Adrienne New Users to Excel 2 November 3rd 07 02:15 PM
Name Placement lsmft Excel Discussion (Misc queries) 7 March 2nd 06 12:16 AM
Tab placement Spiff Excel Discussion (Misc queries) 1 September 15th 05 02:04 PM
Placement question Patrick Simonds Excel Programming 1 April 24th 05 06:15 PM
Bar placement Beto[_3_] Excel Programming 2 January 15th 04 05:15 PM


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