How do I insert a WebP-image jpg in Excel using VBA

0 votes
I'm working with an online WebP image. Despite being a WebP image, the file name ends in.jpg.

I want to use the "ActiveSheet.Pictures.Insert" command to insert this picture into an excel sheet. My code operates flawlessly on real.jpg images, but it fails to operate on this image. It's only possible that it's a WebP image, in my opinion (I got error code 1004: "Unable to get the Insert property of the Pictures class").

Is there a way to handle WebP photos in Excel or VBA? I tried to research FreeImage, but I have no experience with any of this. If I understand well, how can I change an image using FreeImage as a plug-in?
Nov 15 in Others by Kithuzzz
• 20,660 points
37 views

1 answer to this question.

0 votes

It's not currently on the list of supported types:

https://learn.microsoft.com/en-us/deployoffice/compat/office-file-format-reference

I recommend you convert the image to JPG or BMP format before you insert the image.

answered Nov 15 by narikkadan
• 37,660 points

Related Questions In Others

0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

Convert table in a jpg image to excel using python

I believe you must execute OCR (optical ...READ MORE

answered Oct 16 in Others by narikkadan
• 37,660 points
240 views
0 votes
1 answer

How do I protect all worksheet in an Excel workbook with a single click?

VBA Code : Dim ws as Worksheet Dim pwd ...READ MORE

answered Oct 22 in Others by narikkadan
• 37,660 points
33 views
0 votes
1 answer

Retrieve epay.info Balance with VBA and Excel

This code should log you in, provided ...READ MORE

answered Sep 5, 2018 in Blockchain by digger
• 26,720 points
451 views
0 votes
1 answer

How to load file to Excel Power query from SFTP site

Currently, I don't think there is a ...READ MORE

answered Dec 3, 2018 in Power BI by Upasana
• 8,620 points
2,218 views
0 votes
1 answer

Using VBA Excel to create a gramatically correct list

The Excel AND function is a logical ...READ MORE

answered Feb 9 in Others by gaurav
• 22,040 points
69 views
0 votes
2 answers

How to copy a formula horizontally within a table using Excel VBA?

Hi so basically, create an adjacent column ...READ MORE

answered Feb 16 in Others by Edureka
• 13,640 points
205 views
0 votes
1 answer

How do delete an specific page in a word document using Excel VBA?

Check the code below. I eliminated the ...READ MORE

answered Nov 21 in Others by narikkadan
• 37,660 points
24 views
0 votes
1 answer

How can I find and replace text in Word using Excel VBA?

Try this code Option Explicit Const wdReplaceAll = 2 Sub ...READ MORE

answered Oct 15 in Others by narikkadan
• 37,660 points
100 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP