Sorry, failed to attach code, please find it below.
xld - I cannot run macros because software will not recognize any other file extension, it must be excel template (tried save macros in excel template and it was not recognized). I cannot change this setting.
Function GetPartListElement ( cmp, nr, cmpcnt, devnames )
Dim le
Set le = New CPartListElement
With le
.nr = nr
.count = cmpcnt
.name = cmp.article
If cmp.descl <> "" Then
.desc = GetTranslatedText( cmp.descl, SrcLanguage ) ' [11rk] Description by ComponentAttribute (projectlanguage)
Else
.desc = GetTranslatedText( cmp.desc, SrcLanguage ) ' [11rk] Description by ComponentData
End If
.supp = GetTranslatedText( cmp.supp, SrcLanguage ) ' [11rk]
.price = cmp.GetAttributeValue("Techdat3")
.devices = devnames
End With
Set le.cmp = cmp
Set le.devlst = cmp.Devices
If ADDED_COLUMN <> "" Then
If cmp.id < 0 Then ' [15S]>
le.addedinfo = cmp.GetAttributeValueAddedColumn( ADDED_COLUMN, cmp.name_ ) ' AdditionalPart not in project
Else
le.addedinfo = cmp.GetAttributeValue( ADDED_COLUMN )
End If ' <[15S]
End If
Set GetPartListElement = le
End Function