2,462
社区成员
发帖
与我相关
我的任务
分享
'创建进度条对象
Private Sub CreateProgressBar()
Const vbext_ct_MSForm As Long = 3 ' 增加这句 !!!
Dim UsForm As Object
If InStr(1, Application.Name, "Word") > 0 Then
Set objApp = ThisDocument
ElseIf InStr(1, Application.Name, "Excel") > 0 Then
Set objApp = ThisWorkbook
End If
' 其它代码 略…………
End Sub