+ Reply to Thread
Results 1 to 13 of 13

Resize all pictures on worksheet except for those in a specified range

  1. #1
    Forum Contributor
    Join Date
    01-23-2010
    Location
    Suffolk, England
    MS-Off Ver
    Office 365
    Posts
    237

    Resize all pictures on worksheet except for those in a specified range

    Hello, I want to resize all pictures on a worksheet except for those in a specific range. Please could someone help with guidance on modifying the code below to achieve this?

    Thank you,

    Jess

    Please Login or Register  to view this content.
    Last edited by Brontosaurus; 05-16-2024 at 02:31 PM.

  2. #2
    Forum Expert
    Join Date
    11-28-2015
    Location
    indo
    MS-Off Ver
    2016 64 bitt
    Posts
    1,512

    Re: Resize all pictures on worksheet except for those in a specified range

    Perhab change range as needed A1:F10 is not to resize
    Please Login or Register  to view this content.
    Last edited by daboho; 05-16-2024 at 08:44 AM.
    "Presh Star Who has help you *For Add Reputation!! And mark case as Solve"

  3. #3
    Forum Contributor
    Join Date
    01-23-2010
    Location
    Suffolk, England
    MS-Off Ver
    Office 365
    Posts
    237

    Re: Resize all pictures on worksheet except for those in a specified range

    Hi, thank you for your suggestion. The resizing only needs to take place on one worksheet so I modified your code to this;

    Please Login or Register  to view this content.
    But I get an error 91 - object variable or With block variable not set.

    Can you help with what I did wrong?

    Thank you

  4. #4
    Forum Contributor
    Join Date
    01-23-2010
    Location
    Suffolk, England
    MS-Off Ver
    Office 365
    Posts
    237

    Re: Resize all pictures on worksheet except for those in a specified range

    Apologies, this is the modified code;


    Please Login or Register  to view this content.
    Last edited by AliGW; 05-16-2024 at 09:24 AM. Reason: Code tags added - please review the forum guidelines.

  5. #5
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2407 (Windows 11 23H2 64-bit)
    Posts
    83,490

    Re: Resize all pictures on worksheet except for those in a specified range

    You should have added them to post #4, not duplicatied the post.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  6. #6
    Forum Contributor
    Join Date
    01-23-2010
    Location
    Suffolk, England
    MS-Off Ver
    Office 365
    Posts
    237

    Re: Resize all pictures on worksheet except for those in a specified range

    Sorry, I don’t understand your comment. I don’t think I have duplicated the post

  7. #7
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2407 (Windows 11 23H2 64-bit)
    Posts
    83,490

    Re: Resize all pictures on worksheet except for those in a specified range

    You did in order to add the code tags - you will see that I have deleted the duplicate and added code tags to the original post.

  8. #8
    Forum Contributor
    Join Date
    01-23-2010
    Location
    Suffolk, England
    MS-Off Ver
    Office 365
    Posts
    237

    Re: Resize all pictures on worksheet except for those in a specified range

    I don’t know how I managed to do that but apologies. Does your involvement bring this thread to an informal conclusion or is it still active please?

  9. #9
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2407 (Windows 11 23H2 64-bit)
    Posts
    83,490

    Re: Resize all pictures on worksheet except for those in a specified range

    No, of course not! The thread is still active.

  10. #10
    Forum Contributor
    Join Date
    01-23-2010
    Location
    Suffolk, England
    MS-Off Ver
    Office 365
    Posts
    237

    Re: Resize all pictures on worksheet except for those in a specified range

    Ok thanks. I realise what I did wrong now. Again, apologies

  11. #11
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2407 (Windows 11 23H2 64-bit)
    Posts
    83,490

    Re: Resize all pictures on worksheet except for those in a specified range

    No worries.

  12. #12
    Forum Expert
    Join Date
    11-28-2015
    Location
    indo
    MS-Off Ver
    2016 64 bitt
    Posts
    1,512

    Re: Resize all pictures on worksheet except for those in a specified range

    Should be work only shape A2:B1000 to resize in every sheet
    Please Login or Register  to view this content.
    Last edited by daboho; 05-16-2024 at 10:35 AM.

  13. #13
    Forum Contributor
    Join Date
    01-23-2010
    Location
    Suffolk, England
    MS-Off Ver
    Office 365
    Posts
    237

    Re: Resize all pictures on worksheet except for those in a specified range

    Just brilliant, thank you so much! I really appreciate your kindness, Jess

+ 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. [SOLVED] Two macros to insert and resize pictures interfering with each other
    By Ajaxs87 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-10-2023, 02:25 PM
  2. Resize range (table) in VBA based on last row value in another worksheet
    By Erin1986 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-22-2013, 01:36 AM
  3. Pictures Resize When Changing Page Breaks
    By Caldrumr1234 in forum Excel General
    Replies: 1
    Last Post: 06-12-2013, 11:42 AM
  4. Auto resize of pictures
    By Onesock in forum Excel General
    Replies: 7
    Last Post: 11-02-2012, 08:37 AM
  5. Auto resize pictures in certain cells
    By mrggutz in forum Excel General
    Replies: 2
    Last Post: 08-24-2010, 07:33 PM
  6. Auto-Resize all pictures in worksheet
    By stevedes7 in forum Excel General
    Replies: 3
    Last Post: 12-05-2009, 07:12 AM
  7. Pictures resize and move at random?
    By Dazman22 in forum Excel General
    Replies: 2
    Last Post: 11-17-2009, 09:18 AM

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