Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default Protect formulas which reference to unlocked cells in protected s.

My spreadsheet workbook has protected sheets with some cells unlocked so that
other users can enter and edit information. I have protected formulas hidden
in other parts of the worksheets which refer to these cells as absolute
references. Everything works fine except when "cut" and "paste" are performed
on the unlocked cells, resulting in corrupted formulas. Obviously the simple
solution is to tell all users not to perform "cut" and "paste".
Frustratingly, this has not stopped it happening.
Is there a way to prevent the formulas from being corrupted when "cut" and
"paste" are performed?
From reading related discussions I suspect it requires VBASIC code, about
which I know very little.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 221
Default Protect formulas which reference to unlocked cells in protected s.

G'day RJL52 (No name supplied)

Try this

With Application
.CopyObjectsWithCells = False
.DisplayPasteOptions = False
.DisplayInsertOptions = False
End With

HTH
Mark.


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default Protect formulas which reference to unlocked cells in protecte

Thanks for the suggestion Mark. I know very little about VisBasic command
code. I'm not sure exactly where to enter the code you have suggested. (Tried
a couple of options without success).
Could I trouble you for detail in this regard?

Ron.

"NoodNutt" wrote:

G'day RJL52 (No name supplied)

Try this

With Application
.CopyObjectsWithCells = False
.DisplayPasteOptions = False
.DisplayInsertOptions = False
End With

HTH
Mark.



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 221
Default Protect formulas which reference to unlocked cells in protecte

G'day Ron

Press ALT-F11

This will bring up Visual Basic Editor

In the Left pane,

..In bold lettering you will see VBAProject(yourworkbookname)
.. Under that you will see Microsoft Excel Objects folder
.. Double click on "This Workbook"

In the Right pane at the top of the white space you will notice 2 dropdown
boxes.

.. The left Dropdown - Select "Workbook"

.. The right Dropdown should change to "Open"
(if it doesn't, then select it manually.)

This will appear in the white space

Private Sub Workbook_Open()

End Sub

This is where you insert the code, it will look like this

Private Sub Workbook_Open()
With Application
.CopyObjectsWithCells = False
.DisplayPasteOptions = False
.DisplayInsertOptions = False
End With
End Sub

Now, along the menu ribbon, you will see "Debug"

From the dropdown ribbon select "Compile"

Save it

Then test it by closing the workbook & re-opening it.

Good luck
HTH
Mark.



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 221
Default Protect formulas which reference to unlocked cells in protecte

Ron

Apologies

Should have tested this before posting, just tested and failed.

Will try something else.

Will get back to you

Sorry

Mark.




  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default Protect formulas which reference to unlocked cells in protecte

Mark

I appreciate your help and time.

Thankyou in advance.

Ron

"NoodNutt" wrote:

Ron

Apologies

Should have tested this before posting, just tested and failed.

Will try something else.

Will get back to you

Sorry

Mark.



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to delete the content of all unlocked cells in a protected she DrDisk7 Excel Discussion (Misc queries) 1 January 8th 08 09:58 AM
Unlocked Cells in Protected Sheet KMA Excel Worksheet Functions 3 November 8th 07 07:08 PM
paste locked cells and unlocked cells in protected sheet Angeline Excel Worksheet Functions 15 November 1st 06 11:51 PM
Protect unlocked cells in a protected worksheet from cut/pasting Jerry NeSmith Excel Discussion (Misc queries) 0 November 29th 05 09:01 PM
move between unlocked cells on protected sheet ayanna Excel Discussion (Misc queries) 1 April 27th 05 05:59 PM


All times are GMT +1. The time now is 02:37 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"