so i've just make filter based on VBA Code, but for show the data i must press command button
maybe there are VBA Code to show data without press command button but just press enter?
thank you before
so i've just make filter based on VBA Code, but for show the data i must press command button
maybe there are VBA Code to show data without press command button but just press enter?
thank you before
You should probably be interested in the OnKey method.
Artik
OnKey/KeyPress events only work on UserForms. You will need to call in an API if you wish to use them on a WorkSheet.
Alternatively you can create a stand alone macro to perform the action, and then use Excels built-in ability to bind macro to a keyboard shortcut.
Application.OnKey isn't an event, it's to listen while a macro is running. Ideally you don't want the macro running constantly.
OK. I'm wrong. The OP was looking to run a procedure without having click a button. The Application.OnKey method is probably one way to do that. Who cares if it is a Method or Event but feel free to shoot down my answer on semantics?
Last edited by cytop; 04-21-2022 at 10:01 AM.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks