save a picture on desktop

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)
How do we save a picture present in excel to a folder on our desktop

Where in the worksheet do you have the picture ?

If ,for example, the picture is in an image control then you could use something along these lines :

Code:
SavePicture Image1.Picture, Environ("USERPROFILE") & "\DeskTop\[I][B]YourFolder[/B][/I]\Image1.jpg"

change the Folder name as required.
 
Upvote 0
I have used the below code...

ActiveChart.ChartArea.Select
ActiveChart.ChartArea.Copy
Sheets("Data").Select
Range("P3").Select
ActiveSheet.Pictures.Paste.Select
SavePicture Image1.Picture, Environ("USERPROFILE") & "\DeskTop\Image1.png"

it gives an error message....

Run time error '424'

object required

Any suggestions.....
 
Upvote 0
You could try:

SavePicture Image1.Picture,"C:\Documents and Settings\" & Application.UserName & "\Desktop\Image1.jpg"
 
Upvote 0
Depends on whether the picture is on an Image1 component or a Picture1 component. Which do you have in your workbook?
 
Upvote 0
well its picture tool....and it names the images as
Picture1 Picture2 so on.....
but i tried this as well.....gives the same results.....
 
Upvote 0
is there a way to take the content from the clip board and store it in the folder on your desktop....

as I copy the chart using macro it has a copy on the clipboard as well....so we can take it directly from there and save it in the folder on the desktop.....
 
Upvote 0
If you just want to save a picture of a chart to disk then you can use the Chart Export Method as follows :

This will save the chart as a Gif picture file on the C root : ( Change the destination folder as required )

Code:
Worksheets(1).ChartObjects(1).Chart.Export _
Filename:="C:\ChartImage.gif", FilterName:="gif"
 
Upvote 0
I have tried this ....export method but the resolution is not good but by taking a picture of graph give more clarity.....
hence i have saved chart on sheet as a picture and now either from
the sheet or from clipboard i want to save it in a folder on my laptop....

thanks for your inputs.......
 
Upvote 0

Forum statistics

Threads
1,223,275
Messages
6,171,127
Members
452,381
Latest member
Nova88

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