is there a way to write in column I based on column B’s value? So in this case I want to write in “I” a value that I already stored in a variable when Bs value is 03.01.2022? I put the values of column B also in a variable.
For example, if B is 03.01.2022 I want to insert my variable value (e.g. 40 hours) into I2 and do this for every row in my excel sheet.
@pikorpa
I tried it, but now I get the error: If: Conversion from type ‘DBNull’ to type ‘Date’ is not valid.
The StartdatumKW is the variable “myStrDate”.
Dou you know, why it is showing this error?