Thanks

I get an error

Compile error : Variable not defined

Any ideas what I might be doing wrong?