Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Microsoft Office > Excel VBA > Excel VBA
|
Excel VBA Discuss using VBA for Excel programming.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Excel VBA section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 4th, 2008, 02:29 AM
Registered User
 
Join Date: Jun 2008
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default VBA macro, Area chart data series fill

I need to change the fill of a data series in an area chart using a VBA macro. The fill is a picture file. Also the fill must be set to "Tile".

I expected something like this but it does not work:

ActiveChart.SeriesCollection(1).ChartType = xlArea
ActiveChart.SeriesCollection(1).Interior.UserPictu re "c:\green.bmp"
ActiveChart.SeriesCollection(1).Interior.TextureTi le.True

Hope you can help me.
 
Old June 5th, 2008, 04:17 PM
Friend of Wrox
 
Join Date: Feb 2007
Posts: 163
Thanks: 0
Thanked 2 Times in 2 Posts
Default

There is no interior property.
If I remember correctly, this should do what you want:
ActiveChart.SeriesCollection(1).Fill.UserPicture "c:\green.bmp"
ActiveChart.SeriesCollection(1).Fill.TextureTile = True







Similar Threads
Thread Thread Starter Forum Replies Last Post
Fill down series yogeshyl Excel VBA 2 April 24th, 2007 03:56 AM
How to hide Series label in a chart roy_mm Reporting Services 0 March 21st, 2007 02:10 AM
How Can one display chart series using arrays? Alseikhan Excel VBA 0 March 10th, 2006 04:22 PM
Change Series Color in Stacked Line Markers chart Jell Pro VB.NET 2002/2003 0 July 13th, 2005 06:42 AM
Change Series colors in Stacked Line Marker chart Jell VB.NET 2002/2003 Basics 0 July 13th, 2005 04:01 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.