Jump to content

Recommended Posts

Posted

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

Posted

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

Posted

Thanks Ollie But It Doesn't Work

Posted

For Each c In ComboBox1.List
msgbox c     ;
Next c 

 

Sorry about that, I've tried this and it works

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...