Need to fill i properties by excel data

Need to fill i properties by excel data

infobala86
Contributor Contributor
388 Views
2 Replies
Message 1 of 3

Need to fill i properties by excel data

infobala86
Contributor
Contributor

To fill iproperties by excel give a sample and simple i logic code to fill i properties by excel  just simple few lines 

0 Likes
389 Views
2 Replies
Replies (2)
Message 2 of 3

k14348
Advocate
Advocate

Hi,

Sub iPropCopy()
    
    Dim xlApp As Excel.Application
    Set xlApp = GetObject(, "Excel.Application")
    
    Dim xlSheet As Excel.WorkSheet
    Set xlSheet = xlApp.ActiveWorkbook.ActiveSheet
    
    Dim oDoc As PartDocument
    Set oDoc = ThisApplication.ActiveDocument
    
    Dim oProp As Property
    Set oProp = oDoc.PropertySets.Item("Design Tracking Properties").Item("Part Number")
    
    oProp.Value = xlSheet.Range("A1").Value
    
End Sub

 

Hope u can easily convert this to vb,net.

 

-Karth

Message 3 of 3

infobala86
Contributor
Contributor

 Thanks I will check 

0 Likes