Vba/Macro : Change (.png) to (.jpg) from multiple files in a folder

muhammad susanto

Well-known Member
Joined
Jan 8, 2013
Messages
2,077
Office Version
  1. 365
  2. 2021
Platform
  1. Windows
hi all...

i need your help, how to change extension file (.png) to (.jpg) from a folder like in path c:"\my_photos.
i have thousand photos to change .png to ,jpg with keep original file name..ONLY just change extension name
the vba/macro can work at once time from multiple file photos not one by one photo

any help, greatly appreciated..

.sst
 

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.
I'm not sure png and jpg are the same file types are they ?
 
Upvote 0
so take a jpg, copy it, right click on the copy and rename to png, save it
the try and open it with a decent graphic program and it will tell you that it is jpg with wrong file extension
 
Upvote 0
Changing the file extension of a .png file to a .jpg won't convert the .png to a .jpg.
 
Upvote 0
i think i missing it..
i mean convert .png to .jpg maybe is exactly in this case
 
Upvote 0

Forum statistics

Threads
1,214,833
Messages
6,121,858
Members
449,051
Latest member
excelquestion515

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