Code: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


Registered forum members do not see this ad.
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


Code: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


Thanks Ollie But It Doesn't Work


Registered forum members do not see this ad.
Sorry about that, I've tried this and it worksCode:For Each c In ComboBox1.List msgbox c ; Next c
Bookmarks