Heres an example:
First, loop through all text boxes in your title block looking for 'Prompted entrys'
Then add those values to a matrix. In my example i have 100 rows and 2 columns
Finally export these values to an excel file. This will require more customization on your part, but there are plenty of examples online tfor help.
AddReference "Microsoft.Office.Interop.Excel.dll"
Imports Microsoft.Office.Interop
Imports Microsoft.Office.Interop.Excel
Dim oDDoc As DrawingDocument = ThisDoc.Document
Dim excelarray(99, 1) As String
Dim activerow As Integer = 0
Dim oTitleBlock As TitleBlock = oDDoc.ActiveSheet.TitleBlock
For Each oTextBox As Inventor.TextBox In oTitleBlock.Definition.Sketch.TextBoxes
If oTextBox.FormattedText.EndsWith("</Prompt>")
excelarray(activerow, 0) = oTextBox.Text.ToString
excelarray(activerow, 1) = oTitleBlock.GetResultText(oTextBox).ToString
activerow += 1
End If
Next
Dim xlApp As New Excel.Application
Dim xlWorkbook As Excel.Workbook = xlApp.Workbooks.Add()
Dim xlWorksheet As Excel.Worksheet = CType(xlWorkbook.Sheets("Sheet1"), Excel.Worksheet)
xlWorksheet.Range(xlWorksheet.Cells(1, 1), xlWorksheet.Cells(activerow, 2)).Value = excelarray
xlWorksheet.SaveAs("C:\Temp\test file.xlsx")
xlWorkbook.Close()
xlApp.Quit()
xlApp = Nothing
xlWorkbook = Nothing
xlWorksheet = Nothing