Hello,
Here below you can find vba code to color cells if the last character or first character is a space.
I tried the vba code in a test file and it worked, but when I go to the file that has to be checked, an error message appears: "Run-time error '13': Type mismatch".
If I click on debug, the yellow text line to show the error jumps to "If Left(sheetArr(i, j), 1) = " " Then"
In the meantime I checked my worksheet and the naming is correct.
Hope anybody can give me a hint about the error.
![]()
Please Login or Register to view this content.
Bookmarks