Toon posts:

[vba] rowsource in word

Pagina: 1
Acties:

Verwijderd

Topicstarter
Hieronder heb ik een script gebouwd waarin een rowsource verwerkt zit. Ik vroeg me af af "rowsource" wel in WORD VBA is te gebruiken, omdat ik een run-time error 13 "type mismatch" krijg.
Is dit alleen mogelijk in xcel of Access of moet je iets anders doen in Word?


Dim lStr_PrinterList As String

lStr_PrinterList = ListAllPrinters

With cboPrinters
'.RowSourceType = "Value List"
'.RowSource = lStr_PrinterList
.ColumnCount = 1
.BoundColumn = 1
.ColumnHeads = False
End With