Protect Borders When You Copy & Paste

Laurinda

New Member
Joined
Aug 23, 2011
Messages
16
Hi,
I have an Excel 2010 spreadsheet with borders around selected cells, the spreadsheet is protected so my formulas can't get corrupted, but with some cells that are unlocked for user data entry. But when you copy and paste in these user entry cells the borders are getting copied and pasted also destroying the look of the spreadsheet. so how do you protect the borders from being changed and still allow copy and paste in the user entry cells?

I do know that you can copy & paste values, but this is being used by dozens of people (some advanced users & some very basic users), so it's very difficult to ask them all to do this.

Also, I do know that you can insert columns & format the borders on the cells outside the area, but I am copying & pasting this into another spreadsheet & with merged cells, etc it will make it extremely difficult.

Any ideas at all? Thanks in advance! :)
 

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"
Hi Laurinda,

Not sure this can be done to just protect borders unless there is a VBA way.

However, you could create a new worksheet with the formatting the way you want it and those cells are just formulas that looks at the cells that people copy/paste into.

This would retain your formatting while letting them go for it.

I do this in an upload file where users paste data, then i have another sheet that strips out all Tabs, Hard Returns, Commas, Non-Printable Characters with simple formulas.

Then when you copy from your new sheet, you would choose if it is just values or values and formatting.

Maybe that would be the easiest.


Steve=True
www.exceldashboardtemplates.com
 
Upvote 0

Forum statistics

Threads
1,224,564
Messages
6,179,547
Members
452,925
Latest member
duyvmex

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