After digging I found one of @Anonymous 's solutions:
https://forums.autodesk.com/t5/inventor-customization/how-to-create-a-excel-file-using-ilogic-thanks/td-p/3518240
But where he has "Insert data", how can I combine the parts list export here?
I had my rule, then ran this, but blanked out his "Insert data" section and it auto fit all the cells, so this is effective, but has to be a simple way to combine this....here is my info below. Would be nice to be able to insert the Entered Quantity Required in-between column "D" & "E".
qty = InputBox("Enter Rail Quantity needed", "Rail QTY", "1")
ThisBOM.Export("Parts Only", "Parts Only.xlsx", kMicrosoftExcelFormat)
ExportSheet = ThisDoc.Path+"\Parts Only.xlsx"
' ExportPath = ThisDoc.Path
' ExportSheet = ExportPath + "\Parts Only" + ".xls"
'oDoc = ThisApplication.ActiveDocument
'Dim oBOM As BOM
'oBOM = oDoc.ComponentDefinition.BOM
'' Export the BOM view
'Dim oPartsOnlyBOMView As BOMView
'oPartsOnlyBOMView = oBOM.BOMViews.Item("Parts Only")
'oPartsOnlyBOMView.Export(ExportSheet, kMicrosoftExcelFormat)
'Adding Column in Excel
Try
GoExcel.Open(ExportSheet, "Sheet1") 'Open the sheet that you just exported
GoExcel.CellValue("D1") = "QTY for 1" 'Give your columns names here
GoExcel.CellValue("G1") = "Length" 'Give your columns names here
GoExcel.CellValue("H1") = "Total QTY REQ'D" 'Give your columns names here
GoExcel.CellValue("I1") = "Total QTY/Length REQ'D" 'Give your columns names here
For oRow = 2 To 1000 'Go through the rows
If String.IsNullOrEmpty(GoExcel.CellValue("A" & oRow)) Then
Exit For 'Exit the loop when you reach an empty cell in column A
Else
GoExcel.CellValue("H" & oRow) = qty
'Place your column values here
If GoExcel.CellValue("G" & oRow) = "" Then
GoExcel.CellValue("I" & oRow) = Val(GoExcel.CellValue("D" & oRow))* qty
Else
inc = .0625 ' rounding increment ( .125, .25, .5, etc)
GoExcel.CellValue("I" & oRow) = Round(((Val(GoExcel.CellValue("D" & oRow)) * qty) * Round(Round(Val(GoExcel.CellValue("G" & oRow)), 4) / inc) * inc) / 12, 1) & "ft"
End If
End If
Next
Catch
End Try
GoExcel.Save
GoExcel.Close
Autodesk Certified Professional