PivotArea.Format.Fill with picture from Clipboard

JSSWAT

New Member
Joined
Jul 12, 2010
Messages
22
Hey all,

After about an hour of searching I am stumped. Excel 2007 has a nice feature that when you select the plot area of a chart, right click, select Format Plot Area..., then select the Fill tab and select the "Picture or Text Fill" radio button, you have the option to hit a button and insert the image from the clipboard.

Now when I record this action with the Macro recorder it seems to stop recording as soon as I select the plot area. Being somewhat experienced in chart formatting I know you can select a fill image from a file like so:

ActiveChart.PlotArea.Format.Fill.UserPicture "C:/..........."

My question is basically can I do some sort of call to the clipboard:

ActiveChart.PlotArea.Format.Fill.UserPicture = CLIPBOARD PLEASE!!!

^That did not work by the way...

I am happy to get more complicated but praying this one is simple.

Thanks,

Joe​
 

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.
Ok tried a couple more things. I can Dim a variable as a Picture:

Dim Background as Picture

I have seen some people use something called GetFromClipboard. Not sure but I am assuming this is available through some Reference Library or something. Just fuzzy on the details.

Thanks in advance for any help.

Joe
 
Upvote 0

Forum statistics

Threads
1,215,043
Messages
6,122,825
Members
449,096
Latest member
Erald

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