I have a macro that adds validations on a change event. In name manager, I had a table that was "Table1" that I changed to "tblBrand". This line of code is supposed to create a list from that table, but it's throwing error 1004.
.Add Type:=xlValidateList, AlertStyle:=xlValidAlertInformation, Operator:=xlBetween, Formula1:="=tblBrand"
Weirdly, I had used the name box previously, and named this table "shtblBrand" before, and this worked fine. But in name manager, I basically had each table named twice. So this table was in name manager as Table1 and shtblBrand. So to be efficient, I deleted the shtblBrand, and just renamed Table1 to tblBrand. That's when it stopped working and threw the error 1004.
.Addis called on?Range("tblBrand").select? Does it selecting the range you need to process?Formulais correct (the tableDataBodyRange). What aboutRange("pdBrand")?