VBA - Changing Chart (Plot Area) background image...

Japme

New Member
Joined
Dec 8, 2016
Messages
1
I am in the process of building a couple of product generating spreadsheets, for personal and corporate use. I'm currently working on a XY Scatter chart generator that looks at sales distribution or different product, across different areas. The generator itself is fairly simple, and is operational, however there is one thing I would like to vba/macro, to make it easier for a couple of my coworkers, who have difficulty working with the less common aspects of EXCEL.

What I would like to be able to do, is two things...

1. Use VBA to change the image that is loaded into the PLOT AREA of the chart, not the CHART OBJECT BACKGROUND
The reason for this, is that there are series of different geographic areas that these products will cover, and each requires a different background image, most of which are maps, or production and distribution networks, so I would like to be able to click a button, have the select file window open, and when I click OK, have the PLOT AREA image change to the selected image... I have attempted to record a macro of the process, but I cannot get it to work

2. Use VBA to open a "Open File" dialog box, to select a file path to save the output file to.
The worksheet exports the chart, as a PNG, to the filepath that the user designates, however, the user must go into My Computer, and copy the filepath manually, and I would like for this to be internalized to the spreadsheet, to make the workflow smoother.)
 

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).

Forum statistics

Threads
1,214,979
Messages
6,122,551
Members
449,088
Latest member
davidcom

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