ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Block the cut option (https://www.excelbanter.com/excel-programming/341382-block-cut-option.html)

filo666

Block the cut option
 
I'm having a lot of problems with the cut-paste options (right click and then
cut) because all the formulas lost his reference; There is a way to block the
cut option or to tell excell when the user uses the cut option excels doesn't
cut also the references?

Rocky McKinley

Block the cut option
 
Place this code in the workbook code module and it will stop all Cut and
Coping.

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

--
Regards,
Rocky McKinley


"filo666" wrote in message
...
I'm having a lot of problems with the cut-paste options (right click and
then
cut) because all the formulas lost his reference; There is a way to block
the
cut option or to tell excell when the user uses the cut option excels
doesn't
cut also the references?




filo666

Block the cut option
 
Thanks Rocky, the information given has been helpfully

"Rocky McKinley" wrote:

Place this code in the workbook code module and it will stop all Cut and
Coping.

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

--
Regards,
Rocky McKinley


"filo666" wrote in message
...
I'm having a lot of problems with the cut-paste options (right click and
then
cut) because all the formulas lost his reference; There is a way to block
the
cut option or to tell excell when the user uses the cut option excels
doesn't
cut also the references?






All times are GMT +1. The time now is 07:24 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com