Ive got a Type Mismatch error i keep getting on the same line of a function. After much testing and trying to figure out what im probably not doing right, i decided i would go alittle crazy and make sure everything was the same data type something along the lines of,
its probably something very simple like it always is, but ive tried several combinations of the If statement including
now, ive checked it out, the value of that cell is the word sku, the variable passes the correct phrase, and "seems" identical to the check but something isnt matching up, suggestions guys?
Code:
Dim skuAddress As Range With Worksheets(current_ss) dim test as string test = .Cells(1, 1).Value If CStr(test) <> CStr("sku") Or CStr("Model") Then Exit Sub Else
Code:
If test <> "sku" Or "Model" Then If .Cells(1, 1).Value <> "sku" Or "Model" Then
Comment