Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

dropdownbox_change

Status
Not open for further replies.
Jun 6, 2001
26
AU
I am using excel 5.

I am having trouble making the 'onchange' property of a drop down box (on a dialog sheet) input text into an edit box on the sam dialogsheet. The dropdown editbox does have an input range on a worksheet in the same workbook.

the code that i am using is like this..

Sub EntryDialog_drpErrorTitle_Change()
Dim entryDialog As DialogSheet
Dim errMsgRows As Integer


errMsgRows = Worksheets("Errors").Range("A1").CurrentRegion.Rows.Count
Set entryDialog = DialogSheets("EntryDialog")


With entryDialog
For i = 2 To errMsgRows Step 1
If .DropDowns("drpErrorTitle").Text = Worksheets("Errors").Cells(i, 1).Value Then
.EditBoxes("txtErrorMsg").Text = Worksheets("Errors").Cells(i, 2).Value
Else
.EditBoxes("txtErrorMsg").Text = ""
End If
Next
End With
End Sub

am i missing something?

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top