base64 instead of Picture path

Dossfm0q

Banned User
Joined
Mar 9, 2009
Messages
570
Office Version
  1. 2019
Platform
  1. Windows
Greetings
How to load String Picture Date instead of its Path?
Please Replace Space after "<
replace "< " with "<" in <img
< img
Code:
IMG = "< img src='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAA3CAIAAADWsh6cAAAAAXNSR0IArs4c6QAAAARnQU1B" & _
"AACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAADLSURBVGhD7c6xbQNREANRFaLQ/Xem" & _
"Gk7BkIEBR8QHfAfMwyYbcV7XQyT0dUu0wdATaIOhJ9CGv0M/759/ucwXbTB0uswXbTB0uswX" & _
"bTB0uswXbTB0uswXbTB0uswXbTB0uswXbTB0uswXbTB0uswXbTB0uswXbTB0uswXbTB0uswX" & _
"bTB0uswXbTB0uswXbTB0uswXbTB0uswXbTB0uswXbTB0uswXbTB0uswXbTB0uswXbXh46E3Q" & _
"BkNPoA2GnkAbfj13ZuhpDwm9ri9Gdx9HBbbT9AAAAABJRU5ErkJggg=='/>"


[COLOR=#006400]
[/COLOR]
[COLOR=#006400]Set image = LoadPictureGDI([B]IMG[/B])[/COLOR]

 instead of 

[COLOR=#b22222]Set image = LoadPictureGDI("C:\Users\User\Desktop\Untitled1.png")[/COLOR]
</img
 
Last edited:

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.

Forum statistics

Threads
1,216,458
Messages
6,130,757
Members
449,588
Latest member
accountant606

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