Av8tordude
Well-known Member
- Joined
- Oct 13, 2007
- Messages
- 1,075
- Office Version
- 2019
- Platform
- Windows
I have a header in cell DB6 and DC6 (Symbol & Profit/Loss). I'm trying to get the header to show in the listbox header, but it is being displayed under the listbox header. May i receive assistance resolving this issue.
thanks
thanks
VBA Code:
Private Sub lbDec_DblClick(ByVal Cancel As MSForms.ReturnBoolean)
Dim LRow As Long
Dim Wks As Worksheet
Set Wks = ActiveSheet
LRow = Wks.Cells(Wks.Rows.Count, "DB").End(xlUp).Row
With ListBox1
.List = Wks.Range("DB6:DC" & LRow).Value
.ColumnCount = 2
.ColumnHeads = True
.ColumnWidths = "40;40"
End With
lbMonth.Visible = True
obHrs.Value = True
End Sub