+ Reply to Thread
Results 1 to 2 of 2

Resize image by pixel while inserting

  1. #1
    Registered User
    Join Date
    02-29-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    41

    Resize image by pixel while inserting

    Hi,

    i got the code by google search for resizing the imge while inserting in excel sheet. But the resizing happens by the height and width of the column , where i want the image resized to 50px(width) X 50 px(height). Please let me know what changes to be done.
    Please Login or Register  to view this content.
    Thanks in advance ,
    Mayur

  2. #2
    Forum Guru
    Join Date
    01-23-2013
    Location
    USA
    MS-Off Ver
    Microsoft 365 aka Office 365
    Posts
    3,863

    Re: Resize image by pixel while inserting

    Hi mayurpatil,

    Try the following( changes in red):
    Please Login or Register  to view this content.
    It is a best practice to declare all variables. If you misspell a variable in your code, VBA will silently assume it is a Variant variable and go on executing with no clue to you that you have a bug. Go to the VBA development window, click Tools, Options, and check "Require Variable Declaration." This will insert the following line at the top of all new modules:
    Please Login or Register  to view this content.
    This option requires all variables to be declared and will give a compiler error for undeclared variables.

    Lewis

+ 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 pixel color from the image (gif/jpg/png)
    By yan1234 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-01-2022, 08:57 AM
  2. Get pixel color from the image
    By cemregunay in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-17-2014, 04:12 AM
  3. Pixel color of image
    By cemregunay in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-17-2014, 12:55 AM
  4. Save small 15x42 pixel two tone image in macro to avoid external file
    By NumberOCD in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 12-14-2011, 11:03 AM
  5. [SOLVED] Accessing Image Pixel Data
    By RLang in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-19-2006, 10:20 PM

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