[COLOR=#0000ff]Private Sub[/COLOR] cmdloadata_Click()
[COLOR=#0000ff] If[/COLOR] AZTLAN.txtTrialsummary.ListCount <> 0[COLOR=#0000ff] Then[/COLOR]
[COLOR=#0000ff]For [/COLOR]oItem = 0[COLOR=#0000ff] To[/COLOR] AZTLAN.txtTrialsummary.ListCount - 1
LR = Sheets(1).Range("D" & Rows.Count).End(xlUp).Row[COLOR=#008000] 'Redefine Last Row[/COLOR]
[COLOR=#0000ff]If [/COLOR]AZTLAN.txtTrialsummary.Selected(oItem) =[COLOR=#0000ff] True Then[/COLOR]
[COLOR=#0000ff] Select Case[/COLOR] oItem
[COLOR=#0000ff] Case [/COLOR]0
[COLOR=#008000] 'All Items are selected ---> H3:J8[/COLOR]
[COLOR=#0000ff] For[/COLOR] x = 3[COLOR=#0000ff] To[/COLOR] 9
[COLOR=#0000ff]For[/COLOR] b = 8 [COLOR=#0000ff]To[/COLOR] 10
Sheets(1).Cells(LR + x - 2, b - 4) = Sheets(2).Cells(x, b)
[COLOR=#0000ff] Next [/COLOR]b
[COLOR=#0000ff] Next[/COLOR] x
[COLOR=#008000] 'Code To insert All of the other ComboBox Values Here[/COLOR]
[COLOR=#0000ff] Case [/COLOR]1
[COLOR=#008000] 'Data Corresponds To H3:J3[/COLOR]
For x = 8 To 10
Sheets(1).Cells(LR + 1, x - 4) = Sheets(2).Cells(3, x)
[COLOR=#0000ff] Next [/COLOR]x
[COLOR=#008000] 'Code To insert All of the other ComboBox Values Here[/COLOR]
[COLOR=#0000ff] Case [/COLOR]2
[COLOR=#008000] 'Data Corresponds To H4:J4[/COLOR]
[COLOR=#0000ff] For[/COLOR] x = 8 [COLOR=#0000ff]To[/COLOR] 10
Sheets(1).Cells(LR + 1, x - 4) = Sheets(2).Cells(4, x)
[COLOR=#0000ff] Next [/COLOR]x
[COLOR=#008000] 'Code To insert All of the other ComboBox Values Here[/COLOR]
[COLOR=#0000ff] Case[/COLOR] 3
[COLOR=#008000] 'Data Corresponds To H5:J5[/COLOR]
[COLOR=#0000ff] For[/COLOR] x = 8 [COLOR=#0000ff]To[/COLOR] 10
Sheets(1).Cells(LR + 1, x - 4) = Sheets(2).Cells(5, x)
[COLOR=#0000ff]Next [/COLOR]x
[COLOR=#008000] 'Code To insert All of the other ComboBox Values Here[/COLOR]
[COLOR=#0000ff] Case[/COLOR] 4
[COLOR=#008000] 'Data Corresponds To H6:J6[/COLOR]
[COLOR=#0000ff] For [/COLOR]x = 8 [COLOR=#0000ff]To [/COLOR]10
Sheets(1).Cells(LR + 1, x - 4) = Sheets(2).Cells(6, x)
[COLOR=#0000ff] Next [/COLOR]x
[COLOR=#008000] 'Code To insert All of the other ComboBox Values Here[/COLOR]
[COLOR=#0000ff]Case[/COLOR] 5
[COLOR=#008000] 'Data Corresponds To H7:J7[/COLOR]
[COLOR=#0000ff] For[/COLOR] x = 8 [COLOR=#0000ff]To[/COLOR] 10
Sheets(1).Cells(LR + 1, x - 4) = Sheets(2).Cells(7, x)
[COLOR=#0000ff] Next [/COLOR]x
[COLOR=#008000] 'Code To insert All of the other ComboBox Values Her[/COLOR]e
[COLOR=#0000ff] Case [/COLOR]6
[COLOR=#008000] 'Data Corresponds To H8:J8[/COLOR]
[COLOR=#0000ff] For[/COLOR] x = 8 [COLOR=#0000ff]To[/COLOR] 10
Sheets(1).Cells(LR + 1, x - 4) = Sheets(2).Cells(8, x)
[COLOR=#0000ff] Next[/COLOR] x
[COLOR=#008000] 'Code To insert All of the other ComboBox Values Here[/COLOR]
[COLOR=#0000ff] End Select[/COLOR]
[COLOR=#0000ff] End If[/COLOR]
[COLOR=#0000ff] Next [/COLOR]oItem
[COLOR=#0000ff] Else[/COLOR]
[COLOR=#008000] 'Do Nothing[/COLOR]
[COLOR=#0000ff] End If[/COLOR]
Unload Me
[COLOR=#0000ff]End Sub[/COLOR]