ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Last key stroked before auto macro run (https://www.excelbanter.com/excel-worksheet-functions/142511-last-key-stroked-before-auto-macro-run.html)

Khaled

Last key stroked before auto macro run
 
Can I know the last stroked key on KB before a macro has been auto run?
This is because i want to direct of move of selection after an auto macro
has been run

Barb Reinhardt

Last key stroked before auto macro run
 
You can identify the last cell that was accessed before the macro was run.
Assign a range to ActiveCell at the beginning of the macro and then select
that range at the end of the macro. You may need to identify the worksheet
using RANGE.Parent if you move between worksheets.

"Khaled" wrote:

Can I know the last stroked key on KB before a macro has been auto run?
This is because i want to direct of move of selection after an auto macro
has been run



All times are GMT +1. The time now is 12:31 PM.

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