Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 407
Default Unauthorized Movers!

I made a protected template for my dad and, despite my warnings,
occasionally he moves (cuts and pastes) one of the input cells which screws
up the equations. Is there a way to set it up so he can edit the input
cells but not move them?

Thanks!
Dean


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 407
Default Unauthorized Movers!

He's about 2500 miles away!

"Don Guillett" wrote in message
...
Have you considered spanking?

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"Dean" wrote in message
...
I made a protected template for my dad and, despite my warnings,
occasionally he moves (cuts and pastes) one of the input cells which
screws up the equations. Is there a way to set it up so he can edit the
input cells but not move them?

Thanks!
Dean




  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,231
Default Unauthorized Movers!

"Dean" wrote...
I made a protected template for my dad and, despite my warnings,
occasionally he moves (cuts and pastes) one of the input cells which
screws up the equations. Is there a way to set it up so he can edit the
input cells but not move them?


Try putting the following code into the ThisWorkbook class module of the
workbook.


Private Sub Workbook_SheetDeactivate(ByVal Sh As Object)
If Application.CutCopyMode = xlCut Then Application.CutCopyMode = False
End Sub


Private Sub Workbook_SheetSelectionChange(ByVal Sh As Object, _
ByVal Target As Range)
If Application.CutCopyMode = xlCut Then Application.CutCopyMode = False
End Sub


Private Sub Workbook_WindowDeactivate(ByVal Wn As Window)
If Application.CutCopyMode = xlCut Then Application.CutCopyMode = False
End Sub


This will turn off Cut mode when he moves around within the same worksheet,
moves to a different worksheet, or moves to a different workbook.


  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 407
Default Unauthorized Movers!

Perhaps I needed to be more explicit. Actually, my dad doesn't even know
how to cut and paste. But what he does know is how to move by dragging the
contents of a cell with his mouse. I always assumed that such was exactly
the same as cut and paste, but it seems to not be true since your procedure
seems to hush the paste icon, but does not impede clicking and dragging.
Can you help prevent that?

Dean


"Harlan Grove" wrote in message
...
"Dean" wrote...
I made a protected template for my dad and, despite my warnings,
occasionally he moves (cuts and pastes) one of the input cells which
screws up the equations. Is there a way to set it up so he can edit the
input cells but not move them?


Try putting the following code into the ThisWorkbook class module of the
workbook.


Private Sub Workbook_SheetDeactivate(ByVal Sh As Object)
If Application.CutCopyMode = xlCut Then Application.CutCopyMode = False
End Sub


Private Sub Workbook_SheetSelectionChange(ByVal Sh As Object, _
ByVal Target As Range)
If Application.CutCopyMode = xlCut Then Application.CutCopyMode = False
End Sub


Private Sub Workbook_WindowDeactivate(ByVal Wn As Window)
If Application.CutCopyMode = xlCut Then Application.CutCopyMode = False
End Sub


This will turn off Cut mode when he moves around within the same
worksheet, moves to a different worksheet, or moves to a different
workbook.





  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 733
Default Unauthorized Movers!

"Dean" wrote...
Perhaps I needed to be more explicit. Actually, my dad doesn't
even know how to cut and paste. But what he does know is how to
move by dragging the contents of a cell with his mouse. . . .

....
Can you help prevent that?


Tools Options, Edit tab, uncheck 'Allow cell drag and drop'.

  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 407
Default Unauthorized Movers!

Silly me - I knew that once!

I assume that then becomes a global EXCEL setting, but can I have this file
uncheck it when he opens the file and recheck it when he exits (or when he
resaves it)?

Dean

"Harlan Grove" wrote in message
ups.com...
"Dean" wrote...
Perhaps I needed to be more explicit. Actually, my dad doesn't
even know how to cut and paste. But what he does know is how to
move by dragging the contents of a cell with his mouse. . . .

...
Can you help prevent that?


Tools Options, Edit tab, uncheck 'Allow cell drag and drop'.



  #8   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,231
Default Unauthorized Movers!

"Dean" wrote...
....
I assume that then becomes a global EXCEL setting, but can I have this file
uncheck it when he opens the file and recheck it when he exits (or when he
resaves it)?

....

Record the method calls involved while performing these operations manually,
then add the unchecking code to the workbook's Open and Activate event
handlers and the checking code to the workbook's BeforeClose and Deactivate
event handlers.


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
Los Angeles Movers linkswanted Excel Discussion (Misc queries) 1 January 23rd 08 02:41 AM
Protecting an Excel file published on web from unauthorized copying kvin Excel Programming 2 February 4th 07 08:54 PM
UnAuthorized Distribution raysefo New Users to Excel 2 May 7th 06 06:21 PM
Would u help me with a Biggest Movers type of comparison? skuba Excel Discussion (Misc queries) 13 January 24th 06 01:27 AM
How can I secure a file from unauthorized access? Mark Excel Discussion (Misc queries) 1 May 24th 05 11:59 PM


All times are GMT +1. The time now is 08:58 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"