ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   select [a1]cell when hotkey(ctrl+q) pressed, after userform load (https://www.excelbanter.com/excel-programming/351682-select-%5Ba1%5Dcell-when-hotkey-ctrl-q-pressed-after-userform-load.html)

x taol

select [a1]cell when hotkey(ctrl+q) pressed, after userform load
 


i want following.
first userform load and activate in modaless
and then press the ctrl+q then select "a1" cell on the sheet.
my code is following

sub te()
userform1.show 0
Application.OnKey "^q", "sbow"
end sub

sub sbow()
activesheet.[a1].select
end sub

*** Sent via Developersdex http://www.developersdex.com ***


All times are GMT +1. The time now is 09:47 AM.

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