LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 599
Default VBA Forms in Excel (viewing a list of data via a form)

Calum

I think this is definitely do-able, but I'm unclear on how things are set
up.

It sounds like you need one form (or nested forms) for both scores and
competitors. Maybe even a multitab with competitor information on the first
tab and score comboboxes on the second tab. You can't easily "link" the
values of the comboboxes, but with a little code it should be OK. For
instance, if you have textbox with the competitor number, you could use the
value of that textbox to find it on the scores sheets and populate the
comboboxes with the scores.

Private Sub TextBox1_Change()

Dim FndComp as Range

If Len(Me.TextBox1.Text) 0 Then

Set FndComp = Sheets("Scores").Columns(1).Find(Me.TextBox1.Text)

If Not FndComp Is Nothing Then
Me.ComboBox1.Value = FndComp.Offset(0,1).Value
Me.ComboBox2.Value = FndComp.Offset(0,2).Value
Me.ComboBox3.Value = FndComp.Offset(0,3).Value
End If

End Sub

--
Dick Kusleika
MVP - Excel
www.dicks-clicks.com
Post all replies to the newsgroup.


 
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
Drop-down list on simple excel 2003 form using "form" from data me S Beals Excel Discussion (Misc queries) 0 March 2nd 10 08:35 PM
best way to put list data from Excel to a Word form lists Excel Discussion (Misc queries) 1 January 11th 08 07:18 PM
Put form fields in Word forms into an Excel spreadsheet? AMG Excel Discussion (Misc queries) 4 May 15th 06 06:18 AM
how can i print a form/s that are in excel 2000 dataforms? nuschus Excel Discussion (Misc queries) 2 November 8th 05 05:26 PM
Compile/Analyze Word Form Field data from multiple forms? jgundel Excel Discussion (Misc queries) 3 July 14th 05 02:54 AM


All times are GMT +1. The time now is 08:00 AM.

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"