Can Anyone Help Me With VBA Code that "Untiles a Background"...

Lidsavr

Active Member
Joined
Jan 10, 2008
Messages
330
I am running Excel 2007.

I have written code that adds a .jpeg background to several charts in a workbook (in the chart area, not the plot area). The problem I am having is that the Excel 2007 appears to default to a tiled background. I have to manually go to each chart and open the background format and uncheck the "Tile picture as texture" checkbox to get the jpeg to the right size. Next week, when I update the charts, I have to do this again.

I have researched a lot of reference material for code that will uncheck the checkbox when I add the picture and cannot find anything.

Does anyone know the one line code to uncheck the box? It would save me a lot of time each month.

Thanks,

Charles
 

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number
I don't know the answer, but try doing the manual steps with the macro recorder and see what VBA code is generated.
 
Upvote 0
John_w,
Thank you for replying. I have done that.

The Excel Macro Recorder in version 2007 stinks (I thought of other words, but would like to keep this forum G-Rated). The code that the recorder creates when making and modifying charts does not work when working with charts.

I read on one of the Excel guru's that when 2007 was being created, Microsoft was very concerned about memory consumption, so they deleted a lot functionality from the program that was not often used. I think the macro recorder/charts was one of them.

My best to you. I'll keep searching.

Charles
 
Upvote 0

Forum statistics

Threads
1,224,568
Messages
6,179,572
Members
452,927
Latest member
whitfieldcraig

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