Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.
RoyWickrama_RWEI
1613 Views, 8 Replies

Check In dialog box: Need to have OK button selected as default - iLogic

Check In - Dialogbox.JPG

iLogic code request!

 

Currently, OK is not selected. We handle so many documents that we never input data for comments. Therefore we would like OK button is already selected so that by pressing enter (like the dialog box for Save) the document will be checked in.

 

Request help. Currently, I use the code shown below:

Sub Main()
oCheckIN()

End Sub

Sub oCheckIN()

ThisApplication.CommandManager.ControlDefinitions.Item("AppZoomallCmd").Execute
iLogicVb.UpdateWhenDone=True

'ThisDoc.Document.Save()
'
'ThisApplication.ActiveView.Fit
ThisApplication.CommandManager.ControlDefinitions.Item("VaultCheckinTop").Execute2(False)

End Sub

 

 

Thanks.