I'm having an issue that I can't quite figure out through google searching. I'm constructing a string based on cell content within a workbook and values from a variant array and getting a type mismatch error when the code reaches the argument where I construct the string. Code below. Any help is appreciated, thanks!
Dim taskAssignments As String
taskAssignments = ws.[getTaskAssignment] & var(i, 1) & ws.[getTaskAssignment2]
getTaskAssignment/getTaskAssignment2(seriously? how about meaningful names?) and what's its value?ws.Range("getTaskAssignment")in both places.getTaskAssignmentandgetTaskAssignment2are the names of two named ranges local to the same worksheet to whichwsis a valid object reference, then your code is likely to fail in thevar(i, 1)part -> wrap it in aCstr()call