Allow users to replace image on protected sheet , but lock image size

J00490

New Member
Joined
May 17, 2021
Messages
4
Office Version
  1. 365
Platform
  1. Windows
I have a locked sheet where I want a user to be able to replace a 'generic image' with a photo they've taken, but the photo has to resize to fit the shape of the original 'generic image' otherwise it overlaps other data and resizing it each time is a chore (there could be up to 20 instances of this on the sheet).

Currently I am looking at the VBA code suggested here (Allow user to change instered picture on protected sheet) to allow replacing the 'generic image' but I can't figure out how to lock the size of the new picture as I am no good with VBA.
 

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.

Forum statistics

Threads
1,214,925
Messages
6,122,303
Members
449,078
Latest member
nonnakkong

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top