![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Board Regular
Join Date: Mar 2002
Posts: 62
|
Even if I password protect a sheet it is possible to copy the complete sheet and paste it into a new sheet.
Is it possible to stop this? |
|
|
|
|
|
#2 |
|
New Member
Join Date: Feb 2002
Location: Louisiana USA
Posts: 26
|
Yes, you can copy the worksheet. The protection will be copied to. As far as I know there is not a way to prevent copying.
|
|
|
|
|
|
#3 |
|
Board Regular
Join Date: Mar 2002
Posts: 62
|
The protection isn't copied over though!
|
|
|
|
|
|
#4 |
|
New Member
Join Date: Feb 2002
Location: Louisiana USA
Posts: 26
|
Wait A sec. Go to tools, protection then choose protect workbook. That will keep any Worksheets in the Workbook from being copied.
Also if a worksheet is protected and copied to another location even in another workbook the protection is copied also. [ This Message was edited by: Sam W on 2002-03-05 06:45 ] |
|
|
|
|
|
#5 |
|
Board Regular
Join Date: Feb 2002
Location: Arizona
Posts: 72
|
You can also format the cells to "hide" formulas. If the protected sheet is copied, I don't think the hidden formulas will paste. Just the values.
|
|
|
|
|
|
#6 |
|
Board Regular
Join Date: Apr 2002
Location: Cape Town,South Africa
Posts: 234
|
Hi there friend
Try this code in your module,alter it if you must to fit your needs Sub myUnLock() 'This code will unprotect the sheet. Application.EnableEvents = False Application.DisplayAlerts = False ActiveSheet.Unprotect ("admin") 'Add optional code here! Application.EnableEvents = True Application.DisplayAlerts = True End Sub ;-b |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|