Can someone guess how to solve my problem of code?

Elias Daoud 0 Reputation points
2023-06-12T10:05:20.5933333+00:00

I have the following code, I cannot guess why VBA enter the code written under while.

first condition is Empty=Empty, where it should be <> and not =.

the second part is related by "And", so the first condition is not satisficed, so why the debugger enter the code?

User's image

Microsoft 365 and Office | Development | Other
Microsoft 365 and Office | Excel | For business | Windows
{count} votes

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.