Massimo Scola
asked on
Listobjects: How to show a userform when user clicks on Tab
Hello
I have a listobject called "Orders". As all my entries to the datatable are added by userforms, I want to prevent the user from manually adding data at the end of the table by pressing TAB. I'd like to display a userform called frmOrders instead.
What code should I write?
Thanks for your help
Massimo
I have a listobject called "Orders". As all my entries to the datatable are added by userforms, I want to prevent the user from manually adding data at the end of the table by pressing TAB. I'd like to display a userform called frmOrders instead.
What code should I write?
Thanks for your help
Massimo
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
That code can be called once. Did you want to control "tabbing" on a specific range?
ASKER
yes, the range is called "Orders"
and I'd use the same "tabbing" on another range called "Customers" with another userform/macro
and I'd use the same "tabbing" on another range called "Customers" with another userform/macro
ASKER
thanks
ASKER
This code does not work as I've got several worksheets in my workbook.
I tried adding this code to the Worksheet_Activate event but I get an error ..