|
[广告] Excel易用宝 - 提升Excel的操作效率 · Excel / WPS表格插件 ★ 免费下载 ★ ★ 使用帮助★
baomaboy 发表于 2012-9-24 21:18
56505157486510111011178
补充说明。我把加载宏放在网络上。
加载程序
Sub LoadAddIn()
Dim AddInsPath, AddInsName As String
AddInsPath = IIf(Trim(Sheets("设置").Cells(4, "B")) = "", ThisWorkbook.Path & "\", Trim(Sheets("设置").Cells(4, "B")))
AddInsName = Trim(Sheets("设置").Cells(5, "B"))
On Error GoTo ErrorHandler
Set objAddin = Application.AddIns.Add(Filename:=AddInsPath & AddInsName)
With objAddin
.Installed = True
End With
'MsgBox objAddin.Installed
Exit Sub
ErrorHandler:
Err.Raise Err.Number, Err.Source, Err.Description
|
|