This content has been marked as final.
Show 1 reply
-
1. Re: How to catch if Update Design is needed in InCopy with VB?
mmargeta Jun 12, 2013 7:40 AM (in response to mmargeta)Ok. For now I did it over Update Design menu item:
'-------
Dim myApplication As InCopy.Application
Dim myMenu As InCopy.Menu
Dim myFileMenu As InCopy.Submenu
Dim myUpdateDesignMenu As InCopy.MenuItem
myApplication = CreateObject("InCopy.Application.CS6")
myMenu = myApplication.Menus.Item("Main")
myFileMenu = myMenu.Submenus.Item("File")
myUpdateDesignMenu = myFileMenu.MenuItems.Item("Update Design")
'Check if needed update design
If myUpdateDesignMenu.AssociatedMenuAction.Enabled() Then
myUpdateDesignMenu.AssociatedMenuAction.Invoke()
End If
'-------
If anyone knows for a better way please post.
Regards,
Marko
