LoadPictureUrl format png

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
What are you trying to use it for?

Are you working with pictures you are downloading?
 
Upvote 0
Sorry about the delay, I am using the following:

I am bringing direct links, the routine (LoadPictureUrl) saves in temp folder.
"jpg, Gif" has no error, only the type "png"


Code:
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
   
If Target.Address = "$A$2" Then 'Call LocImag

'Error
'ActiveSheet.Image1.Picture = LoadPictureUrl("http://www.planilhando.com.br/forum//styles/ico/lf.png")

'OK    
ActiveSheet.Image1.Picture = LoadPictureUrl("http://www.planilhando.com.br/forum//styles/ico/stats.gif")

End If
    
End Sub
thanks
 
Last edited:
Upvote 0
Sorry, I'm trying to put the figure at image1 control, and the types jpg and gif are accepted, and PNG is not returned.

I've tried so many things, but can't figure it out.
I appreciate any help.

thanks
 
Upvote 0
Any suggestions on this issue?

I solved it by importing the image (url) directly into a cell on the worksheet with another routine, but I wonder if with LoadPictureUrl, would have a solution using an Image control.

thanks
 
Upvote 0

Forum statistics

Threads
1,224,616
Messages
6,179,911
Members
452,949
Latest member
beartooth91

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