VBA
Discuss AutoCAD ActiveX and VBA (Visual Basic for Applications) questions here.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

VBA - Populate ListBox With Action Recorders

1 REPLY 1
SOLVED
Reply
Message 1 of 2
patersonc
982 Views, 1 Reply

VBA - Populate ListBox With Action Recorders

Is there a way to populate a ListBox with all of my Action Recorders?

1 REPLY 1
Message 2 of 2
patersonc
in reply to: patersonc

I got it!!

 

There might be a cleaner way, but it works.  In case anybody want's to know, here's what I did:

 

Private Sub UserForm_Initialize()

     Dim ActionRecFdr As String

     ActionRecFdr = Dir(ThisDrawing.GetVariable("ACTRECPATH") & "\*.actm")

    Do While ActionRecFdr <> ""

         comActionRecorders.AddItem Left(ActionRecFdr, Len(ActionRecFdr) - 5)

        ActionRecFdr = Dir

    Loop

    comActionRecorders.ListIndex = 0

End Sub

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost