If IsPluginOpen = True And Not ActiveWorkbook.Name Like "*Template*" Then
If InStr(1, VBA.LCase(ActiveWorkbook.Keywords), "completed") Or InStr(1, VBA.LCase(ActiveWorkbook.Keywords), "imported") Or _
InStr(1, VBA.LCase(ActiveWorkbook.Keywords), "cancelled") Then
If ErrN = 0 Then
MBAEssentials.PluginInstance = MBAEssentials.PluginInstance - 1
With ActiveWorkbook.VBProject.References
For X = .Count To 1 Step -1
If .Item(X).Name Like RefName Then
.Remove .Item(X)
'Excel.Workbooks("TaskPlugin.xlam").Close False
End If
Next
End With
End If
End If
End If
1) Yes I set the path at runtime towords the addin. using thisworkbook.path and then concatenating the rest of the path.
I have to move the workbook and not the addin. As the workbook changes its position
Bookmarks