ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Deselect of Cells (https://www.excelbanter.com/excel-programming/291704-deselect-cells.html)

Handler Robert[_3_]

Deselect of Cells
 
Hello,

I'm looking for a way to deselect cells within a selection.

example:
Range A1:D5000 is selected.

Now i want deselect some cells.
maybe B500, C700 B700:D600 or something like that

Is there a fast way to do this? Without looping through each cell o
the selection?


wkr
Rober

--
Message posted from http://www.ExcelForum.com


Nick Cranham

Deselect of Cells
 
Handler Robert,
Do you really need to select 20,000 cells in the first place ?


NickHK

"Handler Robert " wrote in
message ...
Hello,

I'm looking for a way to deselect cells within a selection.

example:
Range A1:D5000 is selected.

Now i want deselect some cells.
maybe B500, C700 B700:D600 or something like that

Is there a fast way to do this? Without looping through each cell of
the selection?


wkr
Robert


---
Message posted from http://www.ExcelForum.com/




Handler Robert[_4_]

Deselect of Cells
 
Yes it can happen, that a range with 20.000 cells get selected

--
Message posted from http://www.ExcelForum.com


Nick Cranham

Deselect of Cells
 
Handler Robert ,
If it's by the user, then they are not likely to be able to see what they
are doing.
If it's in code, you can just refer to the desired ranges without selecting.

Unless there's another reason.

NickHK

"Handler Robert " wrote in
message ...
Yes it can happen, that a range with 20.000 cells get selected.


---
Message posted from http://www.ExcelForum.com/




Tom Ogilvy

Deselect of Cells
 
In code
The only way you can deselect is by selecting something else. So if you had

A1:B4 selected, to unselect B4 you would have to select A1:A2,B1

Range("A1:A2,B1").Select

--
Regards,
Tom Ogilvy

"Handler Robert " wrote in
message ...
Yes it can happen, that a range with 20.000 cells get selected.


---
Message posted from http://www.ExcelForum.com/





All times are GMT +1. The time now is 11:58 PM.

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