Aug 16 2023 10:40 AM
How do I apply this code only to certain cells, not the whole worksheet
Aug 16 2023 01:17 PM
In the line
Set xRgVal = Cells.SpecoalCells(xlCellTypeAllValidation)
change Cells to the range you want to limit it to, for example
Set xRgVal = Range("D2:D100").SpecoalCells(xlCellTypeAllValidation)
Aug 16 2023 01:23 PM
Aug 16 2023 01:30 PM
You forgot the quotes around the range address - see my previous reply for an example.
Aug 16 2023 01:34 PM