MORE listbox code
Assume you ListFillRange holds a string like
Data!B9:E35
(Includes the sheet name)
Set sh = Worksheets("Data")
set rng = Range(Listbox1.ListFillRange).Columns(1).Cells
for i = 0 to listbox1.Listcount - 1
if listbox1.Selected(i) then
rw = rng(i+1).row
sh.cells(rw,"F").Value = "Paid"
end if
Next
--
regards,
Tom Ogilvy
"Jennifer" wrote:
In a listbox that allows multi selections and has multi columns when the user
makes his selections how do you place text such as "PAID" in column F for the
corresponding rows selected on the database worksheet. Note: this worksheet
is the same info filling the list box. Thank you Thank you!
--
Though daily learning, I LOVE EXCEL!
Jennifer
|