ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Return to active cell after macro completes (https://www.excelbanter.com/excel-programming/371639-return-active-cell-after-macro-completes.html)

Dave

Return to active cell after macro completes
 
After running a macro that was activated by a button, the button stays on
focus and I have to press the Escape Key to return to the active cell.
What can I do to prevent this?
Thanks.

Dan Hatola

Return to active cell after macro completes
 
activecell.select

or

activecell activate

Dan

"Dave" wrote:

After running a macro that was activated by a button, the button stays on
focus and I have to press the Escape Key to return to the active cell.
What can I do to prevent this?
Thanks.


stevebriz

Return to active cell after macro completes
 
activecell.select
But whic cell this is can depend on what your macro does.

Dan Hatola wrote:
activecell.select

or

activecell activate

Dan

"Dave" wrote:

After running a macro that was activated by a button, the button stays on
focus and I have to press the Escape Key to return to the active cell.
What can I do to prevent this?
Thanks.



NickHK[_3_]

Return to active cell after macro completes
 
If it's a command button from the Controls Toolbox, you can
TakeFocusOnClick=false.

NickHK

"Dave" ...
After running a macro that was activated by a button, the button stays on
focus and I have to press the Escape Key to return to the active cell.
What can I do to prevent this?
Thanks.





All times are GMT +1. The time now is 06:33 AM.

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