irfankhan640
New Member
- Joined
- Jan 30, 2013
- Messages
- 11
I have an Excel Sheet with 10 Textboxes and I group them Together. The Activate method work fine when I Ungroup them But When I group them the Activate method Generate an error. What I want to do is On keyPress or KeyUp or keyDown event when I enter data in Textbox1 and when I press enter key or tab key the Focus Get to Textbox2. See the Attached file.
I have tried both ActiveSheet.TextBox2.Activate and ActiveSheet.OLEObjects("TextBox2").Activate Both Generates error. When I ungroup them Then the First Statements work Fine.
Thanks in Advance
I have tried both ActiveSheet.TextBox2.Activate and ActiveSheet.OLEObjects("TextBox2").Activate Both Generates error. When I ungroup them Then the First Statements work Fine.
Thanks in Advance