Count images larger than a give size in a folder with vba

kelly mort

Well-known Member
Joined
Apr 10, 2017
Messages
2,169
Office Version
  1. 2016
Platform
  1. Windows
Hello again,

I have been searching the net for a while now to find a solution to my problem.

I have come close in most cases but not right to the point.

I want to go to a folder called "MyImages" in the location on my workbook. That's. ..... ThisWorkbook.Path & "\MyImages".

Then I count all images that are above 50kb and show results in a MsgBox alert.

Basically the images will be jpeg files but I will be glad if we can track all other image formats as well.

Thanks
 

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
Hi @Jafaar Tribal,

So I was playing around the code a little bit, wanna add progress bar indicator.

Below is the nature of how my code for the progress bar indicator looks like.

I captured this from a YouTube video.

I want to know if it is possible to implement the progress bar into your code.

If so, then you show me the way around it. For I have stared at the code for long but can't see where to place what.

Thanks

Screenshot_2019-12-30-04-35-35-1.png
 
Upvote 0
Hi @Jafaar Tribal,

So I was playing around the code a little bit, wanna add progress bar indicator.

Below is the nature of how my code for the progress bar indicator looks like.

I captured this from a YouTube video.

I want to know if it is possible to implement the progress bar into your code.

If so, then you show me the way around it. For I have stared at the code for long but can't see where to place what.

Thanks

View attachment 2992

@Jaafar Tribak

Oops the autocorrect messed up my mention tag
 
Last edited:
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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