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

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.

Forum statistics

Threads
1,214,982
Messages
6,122,580
Members
449,089
Latest member
Motoracer88

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