Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
in the following code, i'm collecting a range of data from a worksheet,
With Me.ComboBox1 .ColumnCount = 2 .ColumnWidths = "12;0" 'hide the second column .Clear Set SourceWB = Workbooks.Open("Z:\DT\DT Common\DT Quote Models\DT Quote Log.xls", False, True) With SourceWB.Worksheets(1) Set myRng = .Range("A3:B" & .Cells(.Rows.Count, "A").End(xlUp).Row) End With .List = myRng.Value SourceWB.Close False End With this data is then displayed in a user form, using the following code With Me.ComboBox1 If .ListIndex -1 Then myVar = .List(.ListIndex, 1) '<-- second column! MsgBox myVar 'for testing only Select Case myVar Case Is = "Metals" frmMetalsQuoteForm.Show Case Is = "Glass" 'test End Select End If End With the issue i have is that the data is not displayed in the user form frmMetalsQuoteForm, do I need to do something to pass this value along to the form? thanks burl_rfc |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Passing Variables | Excel Discussion (Misc queries) | |||
Passing variables between forms | Excel Programming | |||
passing variables | Excel Programming | |||
Passing Variables | Excel Programming | |||
Passing Variables | Excel Programming |