View Single Post
 
Old 06-16-2022, 05:35 AM
p45cal's Avatar
p45cal p45cal is offline Windows 10 Office 2019
Expert
 
Join Date: Apr 2014
Posts: 948
p45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond repute
Default

OK. Assuming that column A is the only column you want to protect, in the attached, is a bit of macro code behind Sheet4 which handles right-clicks on that sheet.
The idea is that you select a range or ranges on the sheet, then you right-click in one of the selected ranges and it will ask you whether you want to adjust all the selected ranges to right across the sheet but excluding column A. Whichever you choose the usual right-click menu will appear, and allow you to do what you intend with the selection.
As far as I'm aware, there's no way to protect a column from deletion of some of its rows while allowing the rest of the row to be deleted, hence the my code to adjust the selected cells before operating on them.
Attached Files
File Type: xlsm msofficeforums49207.xlsm (15.3 KB, 8 views)

Last edited by p45cal; 06-16-2022 at 02:00 PM.
Reply With Quote