+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    Senior Member
    Using
    AutoCAD 2007
    Join Date
    Apr 2008
    Posts
    258

    Default how can i make this with vba?

    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

  2. #2
    Senior Member
    Using
    AutoCAD 2007
    Join Date
    Jan 2007
    Posts
    159

    Default

    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

  3. #3
    Senior Member
    Using
    AutoCAD 2007
    Join Date
    Apr 2008
    Posts
    258

    Default

    Thanks Ollie But It Doesn't Work

  4. #4
    Senior Member
    Using
    AutoCAD 2007
    Join Date
    Jan 2007
    Posts
    159

    Default

    Registered forum members do not see this ad.

    Code:
    For Each c In ComboBox1.List
    msgbox c     ;
    Next c
    Sorry about that, I've tried this and it works

Similar Threads

  1. Is there anyway to make a program make an edited dimension standout?
    By BLOACH85 in forum AutoLISP, Visual LISP & DCL
    Replies: 7
    Last Post: 27th May 2009, 05:42 pm
  2. make my own cui
    By MR MAN in forum AutoCAD 2D Drafting, Object Properties & Interface
    Replies: 1
    Last Post: 28th Oct 2008, 08:35 am
  3. How do I make....
    By Lora_D in forum AutoCAD 3D Modelling & Rendering
    Replies: 9
    Last Post: 10th Mar 2008, 01:48 am
  4. How to make...
    By Milon in forum AutoCAD Beginners' Area
    Replies: 3
    Last Post: 23rd Feb 2005, 09:26 am

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts