Pestomania
Active Member
- Joined
- May 30, 2018
- Messages
- 330
- Office Version
- 365
- Platform
- Windows
Hello,
I currently have the following code:
It works great, but I would like the validation to have a "required" of what is in the left. I don't want anyone to be able to put other information in.
Thank you
]
I currently have the following code:
Code:
Dim ws as worksheet
Dim range1 as range, RNG as range
Set was =ActiveWorkbook.Worksheets("master")
Set range1 =ws.range ("B10:B13")
Set RNG =ws.range("C7")
With RNG.validation
.delete
.add type:=xlvalidatelist, alertstyle:=xlvalidatelist, _
Formula1:="='" & ws.name & "'!" & Range1.address
End with
It works great, but I would like the validation to have a "required" of what is in the left. I don't want anyone to be able to put other information in.
Thank you
]
Last edited by a moderator: