PC Review


Reply
Thread Tools Rate Thread

Change Tab Order of UserForm TextBoxes Conditionally

 
 
Minitman
Guest
Posts: n/a
 
      24th Jun 2009

Greetings,

I have a 4 TextBoxes on a UserForm. I have them set-up to tab from
TextBox1 to TextBox2 skip TextBox3 going straight to TextBox4. I have
a Boolean variable called bln1. If true, I need for the tab order to
not skip TextBox3, but if bln1 is false then to leave the tab order as
default (1,2 & 4). The tab order is set with TabStop = True in the
properties window for TextBoxes 1,2 & 4 and set to false for TextBox 3

Any ideas as to how to perform this with vba?

Any help is appreciated.

Thanks for looking.

-Minitman
 
Reply With Quote
 
 
 
 
Tim Zych
Guest
Posts: n/a
 
      24th Jun 2009

Textbox3.TabStop = bln1

and the tab order should be fixed at Textbox1 = 1, Textbox2 = 2, Textbox3 =
3, Textbox4 = 4 in the properties dialog.


--
Regards,
Tim Zych
http://www.higherdata.com
Workbook Compare - Excel data comparison utility

"Minitman" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Greetings,
>
> I have a 4 TextBoxes on a UserForm. I have them set-up to tab from
> TextBox1 to TextBox2 skip TextBox3 going straight to TextBox4. I have
> a Boolean variable called bln1. If true, I need for the tab order to
> not skip TextBox3, but if bln1 is false then to leave the tab order as
> default (1,2 & 4). The tab order is set with TabStop = True in the
> properties window for TextBoxes 1,2 & 4 and set to false for TextBox 3
>
> Any ideas as to how to perform this with vba?
>
> Any help is appreciated.
>
> Thanks for looking.
>
> -Minitman



 
Reply With Quote
 
Minitman
Guest
Posts: n/a
 
      24th Jun 2009

Thanks Tim,

That works very well.

Thanks

-Minitman




On Tue, 23 Jun 2009 17:39:19 -0700, "Tim Zych" <tzych@nospam at
earthlink dot net> wrote:

>Textbox3.TabStop = bln1
>
>and the tab order should be fixed at Textbox1 = 1, Textbox2 = 2, Textbox3 =
>3, Textbox4 = 4 in the properties dialog.
>
>
>--
>Regards,
>Tim Zych
>http://www.higherdata.com
>Workbook Compare - Excel data comparison utility
>
>"Minitman" <(E-Mail Removed)> wrote in message
>news:(E-Mail Removed)...
>> Greetings,
>>
>> I have a 4 TextBoxes on a UserForm. I have them set-up to tab from
>> TextBox1 to TextBox2 skip TextBox3 going straight to TextBox4. I have
>> a Boolean variable called bln1. If true, I need for the tab order to
>> not skip TextBox3, but if bln1 is false then to leave the tab order as
>> default (1,2 & 4). The tab order is set with TabStop = True in the
>> properties window for TextBoxes 1,2 & 4 and set to false for TextBox 3
>>
>> Any ideas as to how to perform this with vba?
>>
>> Any help is appreciated.
>>
>> Thanks for looking.
>>
>> -Minitman

>


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Userform and textboxes Paul Microsoft Excel Programming 1 24th Jun 2008 11:21 AM
Change event for several Textboxes on UserForm RyanH Microsoft Excel Programming 4 18th Jan 2008 03:59 PM
UserForm TextBoxes Rob Microsoft Excel Misc 2 6th Aug 2005 03:07 AM
need to add textboxes to userform on the fly Stuart Holley Microsoft Excel Programming 7 29th Mar 2004 12:23 AM
userform textboxes again Jo Microsoft Excel Programming 4 21st Oct 2003 07:25 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:05 AM.