Excel Userform 文本框值进入评论

Excel Userform textbox value into comment

我想将用户窗体文本框中输入的值转换为评论。到目前为止,我还没有发现任何有效的方法。目前我有这个

单元格(emptyRow,8)。AddComment.Text = NotesTextBox.Value

这可能吗?

文本可以作为参数传递给.AddComment:

Cells(emptyRow, 8).AddComment NotesTextBox.Value

是的,有可能...您的问题的问题在于这是一个充分的答案。你可能会解释更多你的问题。正确的语法是:

Cells(emptyRow, 8).AddComment NotesTextBox.Value