+ Reply to Thread
Results 1 to 2 of 2

How to get a particular image's dimensions?

  1. #1
    Registered User
    Join Date
    11-29-2019
    Location
    India
    MS-Off Ver
    2007
    Posts
    1

    How to get a particular image's dimensions?

    Hello everyone!

    I have a function, which replaces the image at the path "d: // kkk . png" for "i" no. of repetitions with a new image.
    In the next function, I want to set a cell's height and weight to the images' dimensions.

    So, all I want to do is to only get the dimensions of image stored at "d: // kkk . png", and set it to a cell respectively.

    Is this possible?
    I tried much, but can't solve this - I am very new to VBA.

    Thank you so much

  2. #2
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MO Prof Plus 2016
    Posts
    6,901

    Re: How to get a particular image's dimensions?

    One way to do it.

    Please Login or Register  to view this content.
    Avoid using Select, Selection and Activate in your code. Use With ... End With instead.
    You can show your appreciation for those that have helped you by clicking the * at the bottom left of any of their posts.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Get The Dimensions of an Imported Image
    By webiscore in forum Excel Programming / VBA / Macros
    Replies: 21
    Last Post: 07-18-2018, 05:30 AM
  2. Get image dimensions from online image
    By JasperD in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-30-2015, 10:52 AM
  3. VBA save image from webpage, change dimensions
    By jordan2322 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-12-2015, 08:05 PM
  4. [SOLVED] Macro to copy the image attributes eg. name, size, type, dimensions from folder containing
    By busybee235 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-31-2014, 11:32 AM
  5. Replies: 0
    Last Post: 07-08-2014, 06:27 AM
  6. Resize the image according to the cell dimensions.
    By yeshwant_sur in forum Excel General
    Replies: 1
    Last Post: 02-28-2013, 03:05 AM
  7. [SOLVED] Macro to return JPG image from URL (2 URL's in an IF statement determined by dimensions
    By Rob Broggi in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 02-27-2013, 04:00 PM

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