The documentation when followed generates the following error message:
While this error has a help page, it does not explain any specific corrective action that can be done.
The Wrapper statement, from the MDL help is:
Declare Function mdlSheetDef_getBorderAttachmentId Lib "stdmdlbltin.dll" ( ByVal sheetDefIn As Long , ByRef borderAttachmentIdOut As DLong ) As Long
There is also a property in the VBA SheetDefinition object named MdlSheetDef that, according to its help "Retrieves the associated SheetDef pointer that a program can use as an argument to MDL mdlSheetDef functions."
With no example, we cannot determine how to use this or even if this is the way to use the subject wrapper function.
We seem to have hit a brick wall on this and need help from a Bentley Programmer.