Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default List Box SOS



Hi everyone, I am newer than a newbie at Excel programming. I can build
an awesome spreadsheet with lots of buttons and blinking lights but I
need help with some basic VBA code.

I have read and read and tried and tried again and I'm just not getting
it.

Here's what I have and need to do:

A User Form

Some Text Buttons

Some List Boxes

I need to first put the text from text box into a specified cell in a
worksheet. I have been able to accomplish that much but now I need to
disable that text box once the info has been added.


I also need to be able to add the items to the list box from an existing
list in a worsksheet. Does the list box have the capability to update
every time the list in the worksheet is edited?

Then I need to have the selected item from the list box inserted into a
cell in a worksheet and then be disabled.

Can the list box search so that when you type in the first few
characters it automatically goes to that listing?


Thanks again.

Mrs. Bears



*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default List Box SOS

You can disable the controls by setting the enabled property to false, but
it might help to give some visual feedback that it is disabled, such as

With Me.TextBox1
.Enabled = False
.BackColor = 12632256
End With

The best way to add items from a variable range is to use a dynamic formula.
Suppose your data is in A1:An, use this formula in the RowSource property
of the listbox
OFFSET(A1,,,COUNTA(A:A))

The ouput can be directed to a cell by setting the ControlSource property
to that cell, such as C1.

Last part, no, that is a combobox.


--

HTH

RP
(remove nothere from the email address if mailing direct)


"Robin Bird" wrote in message
...


Hi everyone, I am newer than a newbie at Excel programming. I can build
an awesome spreadsheet with lots of buttons and blinking lights but I
need help with some basic VBA code.

I have read and read and tried and tried again and I'm just not getting
it.

Here's what I have and need to do:

A User Form

Some Text Buttons

Some List Boxes

I need to first put the text from text box into a specified cell in a
worksheet. I have been able to accomplish that much but now I need to
disable that text box once the info has been added.


I also need to be able to add the items to the list box from an existing
list in a worsksheet. Does the list box have the capability to update
every time the list in the worksheet is edited?

Then I need to have the selected item from the list box inserted into a
cell in a worksheet and then be disabled.

Can the list box search so that when you type in the first few
characters it automatically goes to that listing?


Thanks again.

Mrs. Bears



*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!



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
Comparing List A to List B and add what's missing from List B Gilbert Excel Discussion (Misc queries) 1 July 20th 09 08:41 PM
create new list from list A, but with exclusions from a list B Harold Good Excel Worksheet Functions 3 April 11th 08 11:23 PM
validation list--list depends on the selection of first list Michael New Users to Excel 2 April 27th 06 10:23 PM
list 1 has 400 names List 2 has 4000. find manes from list 1 on 2 Ed Excel Worksheet Functions 5 September 12th 05 09:48 AM
find names on list 1 in list 2. list 1 4000 names list 2 400 name Ed Excel Worksheet Functions 1 September 4th 05 12:48 AM


All times are GMT +1. The time now is 05:31 PM.

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

About Us

"It's about Microsoft Excel"