Print a chart

saurabh

Board Regular
Joined
Feb 28, 2003
Messages
69
hi!

Is there any way to print two charts in same chart window one upon another which are both transparent and are set one upon other on an excel sheet.
I need vba code to do this..

Thanks and regards
Saurabh
 

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
I'm not sure if this is what you are trying to do but couldn't you just add the 2 chart series to one chart and then print the single chart?
edit: the macro recorder is also a very useful tool when dealing withchart and their manipulation
 
Upvote 0
Hi Saurabh,

Here is a macro that will print the chart named Chart 2 on Sheet1 and any other charts that might be overlaying it or under it. It actually prints the chart by printing the underlying cells. If the underlying cells contain data and that data shows through because ALL the charts are transparent, you will need to put a filled rectangle under the charts if you don't want the data showing through.

Sub PrintOverlayedCharts()
'prints multiple overlayed charts
Dim PrintRange As Range
With Sheet1.ChartObjects("Chart 2")
Set PrintRange = Sheet1.Range(.TopLeftCell, .BottomRightCell)
PrintRange.PrintOut copies:=1
End With
End Sub
 
Upvote 0

Forum statistics

Threads
1,214,873
Messages
6,122,029
Members
449,061
Latest member
TheRealJoaquin

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top