How anyone can Disable Ctrl+V paste option from Excel template in C# VSTO VBA
How to Restrict Paste Options in C# VSTO VBA
Suppose you are working on excel workbook and that workbook has various fields with different formats,Custom validations etc.
But when you paste anything on that cell , current formats and validation just do not work anymore.
So,if possible can i restrict or disable Paste Ctrl + V option ??
Yes, you surely can
The property Application.OnKey() can really help you out.
To Disable Paste
Please do comment if you find this answer helpful.
Incoming Search items:
How to Restrict Paste Options in C# VSTO VBA
Suppose you are working on excel workbook and that workbook has various fields with different formats,Custom validations etc.
But when you paste anything on that cell , current formats and validation just do not work anymore.
So,if possible can i restrict or disable Paste Ctrl + V option ??
Yes, you surely can
The property Application.OnKey() can really help you out.
To Disable Paste
Application.OnKey("^v", "");To eable Paste again
Application.OnKey("^v", Type.Missing);
Please do comment if you find this answer helpful.
Incoming Search items:
- Disable Ctrl+V paste option
- Disable Ctrl+V paste from Excel
- Excel VSTO Ctrl+v or paste option disable
- C# vsto Excel copy paste Disable

0 comments:
Post a Comment