Turn the white background of an image into transparent

Copper Contributor

Hello everyone,

 

I would like from VBA to transform the white background of an image into transparent. I know the "transparent color" function exists but it does not show up with the macro recorder.

 

Can you help me ?

 

In addition, I was offered this formula:

Remi131765_0-1619775630595.png

But when I run the macro I am told that the value typed is out of range (line 6: TransparencyColor).

 

Cordially

Remi

 

0 Replies