MR MAN Posted June 13, 2009 Share Posted June 13, 2009 i have listbox and i need make button apply any command on *.dwgs files in this listbox how can i make this with vba? thanks Quote Link to comment Share on other sites More sharing options...
ollie Posted June 13, 2009 Share Posted June 13, 2009 dim fil as file for each c in listbox1.items fil.open(c) ;do something fil.save fil.close next c I haven't tested this but it will be close to what you need Where are the items in the list box coming from Ollie Quote Link to comment Share on other sites More sharing options...
MR MAN Posted June 13, 2009 Author Share Posted June 13, 2009 Thanks Ollie But It Doesn't Work Quote Link to comment Share on other sites More sharing options...
ollie Posted June 15, 2009 Share Posted June 15, 2009 For Each c In ComboBox1.List msgbox c ; Next c Sorry about that, I've tried this and it works Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.