I think you need to get some background VBA information on what objects, properties, methods, collections, etc... are and how to use them. That way, the Autocad object model will seem a lot more intuitive.
For example, to change the text style of a specific text object, you use its 'Textstyle' property, which simply contains a string with the name of the text style.
To change it, you would for example use:
MyText.TextStyle = "Border"
(assuming that you have a text object called 'MyText' and a text style called 'Border')
This is not to be confused with the 'TextStyles' property or the 'AcadTextStyle' object
Textstyles is a property of a drawing object. It is a collection, containing a bunch of 'AcadTextStyle' objects. You would use it if you actually want to edit the text styles themselves, or create and delete them.
For example, the following routine gives you a list of all the textstyles in your drawing:
Sub test456()
Dim Textstyleslist As String
For n = 0 To ThisDrawing.TextStyles.Count - 1
Textstyleslist = Textstyleslist + vbNewLine + ThisDrawing.TextStyles.Item(n).Name
Next
MsgBox Textstyleslist
End Sub
Best regards
Kasper Wuyts
_______________________________________________________________________________
If this post solves your problem, clicking the 'accept as solution' button would be greatly appreciated.