Private Sub Worksheet_Change(ByVal Target As Range)
Dim lngPCOL As Long, lngPSROW As Long, lngPEROW As Long
Dim lngPLISTCOL As Long, lngPLISTROW As Long
lngPCOL = Range("PackageColumn").Column
If Target.Column <> lngPCOL Then Exit Sub
lngPSROW = Range("PackageColumn").Row
lngPEROW = Range("PackageColumn").Rows.Count + lngPSROW - 1
If Target.Row < lngPSROW Or Target.Row > lngPEROW Then Exit Sub
lngPLISTCOL = Sheets("Validation").Range("Packages").Column
lngPLISTROW = Sheets("Validation").Range("Packages").Row
ActiveWorkbook.Names.Add Name:="PackageList", RefersToR1C1:= _
"=Validation!R" & lngPLISTROW & "C" & lngPLISTCOL & ":R" & Sheets("Validation").Range("MaxPackage").Value + 1 & "C" & lngPLISTCOL
lstPACKAGE.ListFillRange = "Validation!" & Sheets("Validation").Range("PackageList").Address ' Sheets("Validation").Range("PackageList").Range
End Sub
Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.
When asked, what has been your best career decision?
Deciding to stick with EE.
Being involved with EE helped me to grow personally and professionally.
Connect with Certified Experts to gain insight and support on specific technology challenges including:
We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE