Hello All,
This is my first post, so forgive me if my post is somewhat inept.
I'm having trouble with some VBA code. I've got some cells that I need to create a drop down list based on the selection in another drop down list. I can do this with no trouble via excel, but trying to create it again via VBA is not going well. I used the macro recorder for some guidance on what to do as far as coding and it provided the following:
However, when I run the macro, I'm getting the following error: "Run-time error '1004': Application-defined or object-defined error"
I've googled the heck out of this question for the last couple days and can't seem to figure out what the problem is. When running the debugger, it's showing this line as being the issue:
Any help would be much appreciated.
Thanks!
This is my first post, so forgive me if my post is somewhat inept.
I'm having trouble with some VBA code. I've got some cells that I need to create a drop down list based on the selection in another drop down list. I can do this with no trouble via excel, but trying to create it again via VBA is not going well. I used the macro recorder for some guidance on what to do as far as coding and it provided the following:
Code:
With Range("BQ208").Validation
.Delete
.Add Type:=xlValidateList, AlertStyle:=xlValidAlertStop, Operator:= _
xlBetween, Formula1:="=INDIRECT(SUBSTITUTE($BQ$207,"" "",""_""))"
.IgnoreBlank = True
.InCellDropdown = True
.InputTitle = ""
.ErrorTitle = ""
.InputMessage = ""
.ErrorMessage = ""
.ShowInput = True
.ShowError = False
End With
However, when I run the macro, I'm getting the following error: "Run-time error '1004': Application-defined or object-defined error"
I've googled the heck out of this question for the last couple days and can't seem to figure out what the problem is. When running the debugger, it's showing this line as being the issue:
Code:
.Add Type:=xlValidateList, AlertStyle:=xlValidAlertStop, Operator:= _
xlBetween, Formula1:="=INDIRECT(SUBSTITUTE($BQ$207,"" "",""_""))"
Any help would be much appreciated.
Thanks!