今天发现的可以使用参数的方式将表单设计元素名传给方法

dim field as string

dim name as string

field="author"

name=doc.getitemvalue(field).text

msgbox name

由此,将域名传给GETITEMVALUE方法,而取得该域的值。

原文地址:https://www.cnblogs.com/hannover/p/1899918.html