I copied a script to create a Signature for Outlook and adjusted it to my needs, which surprisingly works quite well, unless for one thing. When I try to insert the Mobile Phone number out of the Active Directory, which is in the format +49 173 ####### I get following error:
here is the code I use for it:
strMobile = objUser.Mobile
if (strMobile) Then objSelection.TypeText "Mobil: " & strMobile
It does work when I delete the 2 blanks in the mobile phone number and it does work when I delete the "if then" query in front of objSelection..., which I don't understand at all, but neither is an option in my case.
The "if then" query is because not everyone has a mobile phone number entry and without the blanks it looks horrible. I'm sure there must be a solution to this but I couldn't find it so far.