YellowLabPro
10-09-2007, 08:12 AM
Never mind- That is what the Help file is for.....
Should have been
valList = array("SNBD", "SNBB", "SNBT", "SNBJ", "SNBP", "SNBGG", "SNBH", "SNBGL", "SNBPK", "SHOES", "HAT", "BEAN", "TEE")
I need some help w/ this line, declaring my list. I want to keep it separate for maintenance from the line of code.
This line is erroring, due to syntax.
valList = "SNBD", "SNBB", "SNBT", "SNBJ", "SNBP", "SNBGG", "SNBH", "SNBGL", "SNBPK", "SHOES", "HAT", "BEAN", "TEE"
Dim c As Range, rng As Range
Dim lrow As Long
Dim valList As Variant
valList = "SNBD", "SNBB", "SNBT", "SNBJ", "SNBP", "SNBGG", "SNBH", "SNBGL", "SNBPK", "SHOES", "HAT", "BEAN", "TEE"
lrow = Cells(Rows.Count, 9).End(xlUp).Row
Set rng = Range("J6:J" & lrow)
For Each c In rng
If Not IsError(Application.Match(c.Value, Array(valList), 0)) _
And Len(c.Offset(0, 45).Value & c.Offset(0, 46).Value & c.Offset(0, 47).Value) < 1 Then
Should have been
valList = array("SNBD", "SNBB", "SNBT", "SNBJ", "SNBP", "SNBGG", "SNBH", "SNBGL", "SNBPK", "SHOES", "HAT", "BEAN", "TEE")
I need some help w/ this line, declaring my list. I want to keep it separate for maintenance from the line of code.
This line is erroring, due to syntax.
valList = "SNBD", "SNBB", "SNBT", "SNBJ", "SNBP", "SNBGG", "SNBH", "SNBGL", "SNBPK", "SHOES", "HAT", "BEAN", "TEE"
Dim c As Range, rng As Range
Dim lrow As Long
Dim valList As Variant
valList = "SNBD", "SNBB", "SNBT", "SNBJ", "SNBP", "SNBGG", "SNBH", "SNBGL", "SNBPK", "SHOES", "HAT", "BEAN", "TEE"
lrow = Cells(Rows.Count, 9).End(xlUp).Row
Set rng = Range("J6:J" & lrow)
For Each c In rng
If Not IsError(Application.Match(c.Value, Array(valList), 0)) _
And Len(c.Offset(0, 45).Value & c.Offset(0, 46).Value & c.Offset(0, 47).Value) < 1 Then