VBA消息框中的可选文本 [英] Selectable Text in VBA Message Box

查看:184
本文介绍了VBA消息框中的可选文本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我在VBA中创建一个msgbox时,用户根本无法与文本进行交互。在我的情况下,我希望用户能够突出显示并复制文本。我在想,更好的方式可能是添加一个将文本复制到剪贴板的按钮。任何建议?

When I create a msgbox in VBA, the user cannot interact with the text at all. In my case, I want the user to be able to highlight and copy the text. I'm thinking the better way to do this may be to add a button that copies the text to the clipboard. Any suggestions?

推荐答案

对于此代码:

msgbox "Does Control+C work on a lowly, old message box?"

您可以按 ctrl + c 打开记事本, ctrl + v ,你会得到这个:

you can press ctrl + c, open notepad, ctrl + v and you will get this:

---------------------------
Microsoft Excel
---------------------------
Does Control+C work on a lowly, old message box?
---------------------------
OK   
---------------------------

这篇关于VBA消息框中的可选文本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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