ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   limit copy command? (https://www.excelbanter.com/excel-programming/319956-limit-copy-command.html)

Johan Johansson

limit copy command?
 
I want the user only to be able to copy visible cells, how do I do
this?
Also I want to disable all forms of cut (shortkeys, mouse movements
etc), how do I do this?

Thanks

/Johan

Jim S[_3_]

limit copy command?
 
Hi, I assume that by visible cells, you mean those with content (?). If so,
then something like this might help:

For Each c In Range("b5:i34, b37:i42")
If c.Value < "" Then
c.Select
Selection.Interior.ColorIndex = 6
Selection.Font.ColorIndex = 10
[b5].Select
Else
End If
Next c

"Johan Johansson" wrote:

I want the user only to be able to copy visible cells, how do I do
this?
Also I want to disable all forms of cut (shortkeys, mouse movements
etc), how do I do this?

Thanks

/Johan



All times are GMT +1. The time now is 05:46 PM.

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