After my code performs a copy & special paste of a whole external worksheet into the current workbook, the target remains selected. It seems than in the past there was a .Deselect() function?
I have attempted to select the cell [1,1], but the app crashes with a COM error.
For reference, this is one of many sites that provide methods that fail to work:
https://www.pcreview.co.uk/threads/programmatically-deselect-a-selection.2412034/
TIA
如果要取消选择另一个区域,则需要选择另一个范围/单元格。
ActiveSheet.Range("a1").Select();
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.