Dear All,
Might be a stupid question but the value which I assign to a variable in the if-then statement gets lost after 'end if'. Below are 2 examples to illustrate that.
In first example I assign x=1 within if-then statement. Output with Debug.Print is nothing:
Private Sub...