如何调用Public Function(arg1,arg2,....)?这会导致语法错误。
该项目将重复使用先前写在报告中的文本(适用于类似情况)以用于将来的报告。当然,必须对其进行详细的编辑。
当前的挑战是使用ms_word vba中的条件组合框从ms-excel获取数据,在第一列中查找,在下一列中返回响应。
下面的代码来自http://www.msofficeforums.com/word-vba/23144-populate-word-drop-down-list-excel-column.html
Option Explicit
Private RS As Object
Private CN As Object
Private numrecs As Long, q As Long
Private strWidth As String
Public Function xlFillList(ListOrComboBox As Object, _
iColumn As Long, _
strWorkbook As String, _
strRange As String, _
我尝试将其放入Sub End Sub中,但vba编辑器立即显示错误。