fortunejake88
New Member
- Joined
- Sep 25, 2022
- Messages
- 1
- Office Version
- 365
- Platform
- Windows
How do I use offset within the source of a data validation list in VBA? Also, the data validation list is applied with a loop, so "c" is the reference point.
For each c In Range ("AD8:AD316")
With Selection.Validation
.Add Type:=xlValidateList, _ AlertStyle:=xlValidAlertStop, _ Formula1:="Offset(c,0,22,c,0,88)
' other info '
End With
For each c In Range ("AD8:AD316")
With Selection.Validation
.Add Type:=xlValidateList, _ AlertStyle:=xlValidAlertStop, _ Formula1:="Offset(c,0,22,c,0,88)
' other info '
End With