Hi @solada thanks for your reply.
So in order to call a number, you need to put 0034 before the number and it should dial it normally.
The only number you remove from the number you're trying to dial is the first 0.
For example, if you was dialling a UK number from abroad, that's an 0161 area code, or mobile starting in 07, you'd dial 0044161, or 00447.
Obviously, the fact that you're calling Spain means you'd do the exact same thing here, but with 0034 instead of 0044!
I hope this helps!
Many thanks
Tom_W