Let's say I have a range of values as such:
Customer | Services | Cost | Paid
Mel | Abc | $1.00 | TRUE
Mel | Def | $2.00 | FALSE
Xin | Abc | $3.00 | TRUE
Titus | EEE | $4.00 | TRUE
and I want these items to be inserted into a listbox. However I have a few criteria, which is to display the items only specific to the user (e.g. Mel or Xin or Titus), and display only when "False". How am I to do so, thanks in advance.
What I have now:
Dim lbtarget As MSForms.ListBox
Dim rngSource As Range
Set rngSource = Range("Table1")
Set lbtarget = Me.ListBox1
With lbtarget
'Determine number of columns
.ColumnCount = 4
'Set column widths
.ColumnWidths = "50;80;100"
'Insert the range of data supplied
.List = rngSource.Cells.Value
End With