无法通过Excel VBA调用通信器! [英] Unable to invoke communicator through Excel VBA!

查看:68
本文介绍了无法通过Excel VBA调用通信器!的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

虽然代码Set msgr = Messenger.InstantMessage(toUser)打开了以toUser为目标人的通信器窗口,但当toUser是一个名字时它会失败在名称中包含空格,例如'abc,xyz,DKD C'。

Though the code Set msgr = Messenger.InstantMessage(toUser) opens the communicator window with the toUser as destined person, it fails when the toUser is a name containing space amidst the name eg,'abc,xyz,DKD C'.

在这种情况下,toUser是包含的单个名称,并且" " 嵌入其中,上面的代码确实调用了通信器窗口,但修剪了名称中包含的空格,因此通信器窗口指向的结果目标人员
状态未知且无法发送给他的消息。

In this case the toUser is a single name containing , and " " embedded in it, the above code do invoke the communicator window but trimming the spaces contained in the name hence the resulting target person for whom the communicator window is pointing is having a unknown status and unable to send the messages to him.

请建议一种方法,以避免在调用通信器时自动修剪名称中的空格。

Please suggest a method to avoid the automatic trimming of spaces in the name while invoking the communicator.

 

推荐答案

嗨Praveen,

Hi Praveen,

 

你可以使用电子邮件ID代替用户名。

you can use the email id in place of the user name.

Sourabh


这篇关于无法通过Excel VBA调用通信器!的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆