Scotster
Board Regular
- Joined
- May 29, 2017
- Messages
- 59
- Office Version
- 365
- 2019
- 2016
- Platform
- Windows
I understand this will seem like a strange query, I guess it may just be a little OCD kicking in, I get annoyed when I've ran some code on a worksheet and various cells are highlighted when I select the sheet for viewing. Is it possible to deselect all cells in a worksheet, or select range("A1"), when the sheet is either not activated or invisible?
At the moment I'm using the following...
Is there something a bit more straight forward or is this it?
At the moment I'm using the following...
Code:
with sheets("Whateversheet")
.range("A1").copy
.range("A1").paste
end with