Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default Default value of a List Box on a UserForm

I have a List Box for a couple items on my UserForm. I want to use a default
value so that the user does not have to do anything if the current value in
the list box is correct. One example would be if the choice was enter State
information. If the default was FL, it would automatically get entered and
the user would not have to do anything.

How do you do this for just text boxes?

Thanks
--
SailFL
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,489
Default Default value of a List Box on a UserForm

Hi,

Maybe you could use the .Value property once the listbox has been populated.

ListBox1.Value = "FL"

Cheers
Andy

SailFL wrote:
I have a List Box for a couple items on my UserForm. I want to use a default
value so that the user does not have to do anything if the current value in
the list box is correct. One example would be if the choice was enter State
information. If the default was FL, it would automatically get entered and
the user would not have to do anything.

How do you do this for just text boxes?

Thanks


--

Andy Pope, Microsoft MVP - Excel
http://www.andypope.info
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Userform list box population Alberto Ast[_2_] Excel Discussion (Misc queries) 3 November 21st 09 01:14 AM
list userform Joanne Excel Discussion (Misc queries) 0 June 28th 07 01:18 AM
Userform List box to Text Box hazel Excel Discussion (Misc queries) 1 September 16th 06 07:05 PM
Userform Yes - No Default Moe Excel Discussion (Misc queries) 0 May 26th 05 11:30 PM
Userform-List box help KimberlyC Excel Programming 1 August 22nd 03 07:39 PM


All times are GMT +1. The time now is 06:44 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"