I am using the win32com.client to read an Excel file and I would like to find everything NOT ending with "some string" in the value(s) I have in:
ws.Cells(i, 8).Value
Since I do not know the workaround for endswith(), I tried to also search by the value length which could also do the job, but I cannot call len() on ws.Cells(i, 8).Value because I get an 'unicode' error. I also tried to convert the value to a string without luck.
Basically I would like to do:
if len(ws.Cells(i, 8).Value) > 255:
ws.Cells(i, 8).Value = ws.Cells(i, 8).Value + " (Issues Here)"
I appreciate any support I can get on this.