Results 1 to 7 of 7

Get Image dimentions before loading? if wrong dimention do not load...

Threaded View

  1. #1
    Registered User
    Join Date
    06-25-2010
    Location
    Lisbon
    MS-Off Ver
    Excel 2007
    Posts
    92

    Get Image dimentions before loading? if wrong dimention do not load...

    How can one get picture dimention before loading ?

    imagine i have 30 pictures that i need to be < 1024x768 or < 768x1024

    kind of cheking out :

    For Each objFile In objFolder.Files
    
    if objFile.Width > 1024 and objFile.Height > 768 then exit sub
    if objFile.Height > 1024 and objFile.Width > 768 then exit sub 
    
    next
    msgbox "all images are in the correct size"
    i have try to find the forum but with no sucess..

    thx in advanced
    Last edited by homasa; 08-04-2010 at 12:17 PM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1