Why am I getting a type mismatch error on line 4 when I execute the below code?
Function delete()
delete= True
End function
delete() = False
if delete() = False then
MsgBox "Yes"
else
MsgBox "No"
end if
You can't assign a value to a function this way delete() = False
You need to remove this line delete() = False. I don't see any use with line 4.