Hello. Thanks

To test both codes I used F8.
First I ran the first code that works perfectly.
Then, I ran the second code and "Runtime Error 91: Object variable or with block variable not set"

Cheers