+ Reply to Thread
Results 1 to 10 of 10

Save and Resize

  1. #1
    Registered User
    Join Date
    07-07-2013
    Location
    uk
    MS-Off Ver
    Office 2010
    Posts
    8

    Save and Resize

    I use this code in exel 2003 to insert and size a picture in a cell. However moved on to 2010 and the code doesnt work correctly:

    1) If I use a pic from a memory stick, then remove that from my PC whenever I reopen the file it tellls me the link is broken or pic has been deleted.
    2) Picture does not resize to cell size

    Anyone got any advice?

    Cheers

    Please Login or Register  to view this content.
    Last edited by Fotis1991; 10-23-2014 at 05:23 AM. Reason: You have to add code tags in your first post..

  2. #2
    Registered User
    Join Date
    07-07-2013
    Location
    uk
    MS-Off Ver
    Office 2010
    Posts
    8

    Re: Save and Resize

    My apologies

    Please Login or Register  to view this content.

  3. #3
    Forum Guru karedog's Avatar
    Join Date
    10-03-2014
    Location
    Indonesia
    MS-Off Ver
    2003
    Posts
    2,971

    Re: Save and Resize

    Hi,

    Try change this line :
    Please Login or Register  to view this content.
    to this :
    Please Login or Register  to view this content.
    1. I care dog
    2. I am a loop maniac
    3. Forum rules link : Click here
    3.33. Don't forget to mark the thread as solved, this is important

  4. #4
    Registered User
    Join Date
    07-07-2013
    Location
    uk
    MS-Off Ver
    Office 2010
    Posts
    8

    Re: Save and Resize

    Solved the issue with saving the pic in file but now the image is extremely blurred and unrecognizable. Is it a case of adjusting the 4 values until the pic is OK?

  5. #5
    Registered User
    Join Date
    07-07-2013
    Location
    uk
    MS-Off Ver
    Office 2010
    Posts
    8

    Re: Save and Resize

    I've adjusted all the values to 100 and it seems to be working OK. Thanks for the help.

  6. #6
    Forum Guru karedog's Avatar
    Join Date
    10-03-2014
    Location
    Indonesia
    MS-Off Ver
    2003
    Posts
    2,971

    Re: Save and Resize

    Glad to help

    Don't forget to mark this thread as Solved.

  7. #7
    Registered User
    Join Date
    07-07-2013
    Location
    uk
    MS-Off Ver
    Office 2010
    Posts
    8

    Re: Save and Resize

    Thought this was solved but still having problems. It works OK on the second worksheet, but not on the first.

    I've attached an example of the reports we are using, use Ctrl + Q to insert the picture into a cell (OK photo or NG photo)

    Here's the code that is currently in use also.

    Please Login or Register  to view this content.
    Thanks for looking
    Attached Files Attached Files

  8. #8
    Forum Guru romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    A1
    MS-Off Ver
    Most
    Posts
    12,302

    Re: Save and Resize

    Try this:
    Please Login or Register  to view this content.
    Remember what the dormouse said
    Feed your head

  9. #9
    Forum Guru karedog's Avatar
    Join Date
    10-03-2014
    Location
    Indonesia
    MS-Off Ver
    2003
    Posts
    2,971

    Re: Save and Resize

    Hi,

    I have test the code and it is working on both sheets (the pic is loaded).
    If the problem is the size of the pic not match with the width / height of the cell, then I modify the code to this :

    Please Login or Register  to view this content.

  10. #10
    Registered User
    Join Date
    07-07-2013
    Location
    uk
    MS-Off Ver
    Office 2010
    Posts
    8

    Re: Save and Resize

    Thanks for the help guys. I'll give them a try later.

+ 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. Image picture resize and save as on differen location
    By cemregunay in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-21-2014, 06:30 AM
  2. Resize and save picture / class module
    By onlinecom in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-07-2011, 04:36 PM
  3. [SOLVED] I could NOT resize the axis title but excel allows me to resize gr
    By Iwan Setiyono Ko in forum Excel Charting & Pivots
    Replies: 4
    Last Post: 06-05-2006, 11:50 PM
  4. [SOLVED] I could NOT resize the axis title but excel allows me to resize gr
    By Iwan Setiyono Ko in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 03-15-2006, 06:40 AM
  5. Why do Scripts become visible on Save and Resize Row
    By rwhiton in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-02-2005, 02:16 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