Discussion Locked

Unselecting Excel Cells

0 helpful
11 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
Having selected multiple cells in Excel 2000 using Ctrl and left mouse button. How do I unselect just one cell while keeping the others selected?

11 replies

by doug9810

Don...
I thought this would work also, but, I had tried it before and it still doesn't work.

by don christner

It also depends on what you're trying to do with the selected cells. Excel won't allow many command to work across muliple selection areas.

Don

by doug9810

If you can select a cell you should be able to de-select a single cell from a group. I've tried adjacent cells and it doesn't work. The areas are not protected, etc.

Thanks again for you help Don, I appreciate it.

by raffi_

There is only one way I have found to do this.

Make your selections as normal. You can now tab through the selected cells (in the order in which they were selected). When you have tabbed to the cell you want to EXCLUDE go to the top right corner where the cell address is listed. Highlight the address and press the delete key. The cell will no longer be selected.

Regards
Raffi_
(Question was worth more than 5 points by the way ;-)

by raffi_

Okay - so I goofed. I apologize. On further research I do not think that there IS any built-in way to do this so, here is a macro that will do it for you. Select the cell that you want to exclude (just select it with the mouse while the CTRL key is still down), and run UnSelectActiveCell.
All cells except the ActiveCell will remain selected. Then, hold down the
CTRL key and continue selecting cells.

---start macro---
Sub UnSelectActiveCell()
Dim Rng As Range
Dim FullRange As Range

If Selection.Cells.Count > 1 Then
For Each Rng In Selection.Cells
If Rng.Address <> ActiveCell.Address Then
If FullRange Is Nothing Then
Set FullRange = Rng
Else
Set FullRange =Application.Union(FullRange, Rng)
End If
End If
Next Rng

If FullRange.Cells.Count > 0 Then
FullRange.Select
End If
End If

End Sub
---end macro---

Regards
Raffi_

by doug9810

Many Thanks...

The macro works perfectly. I appreciate your perserverance. I would hope Microsoft includes this capability in an update or next release.

Regards
Doug

This discussion is closed to new replies.