Link to home
Start Free TrialLog in
Avatar of Massimo Scola
Massimo ScolaFlag for Switzerland

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
ASKER CERTIFIED SOLUTION
Avatar of Elton Pascua
Elton Pascua
Flag of Philippines image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Massimo Scola

ASKER

Thanks for your code techfanatic
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 ..
That code can be called once. Did you want to control "tabbing" on a specific range?
yes, the range is called "Orders"
and I'd use the same "tabbing" on another range called "Customers" with another userform/macro
thanks