Reading Excel File without starting Excel ?

Discussion in 'AutoCAD' started by Alan Henderson @ A'cad Solutions, May 25, 2004.

  1. I am trying to learn more about AutoCAD, Excel and the VLAX commands.
    I have learned how to read and write to an open Excel file.

    Is it possible to read an excel file using VLAX- functions, without actually starting Excel?
    If so, can you get me some direction?
    If not, is this something that would be possible in VB.net?

    TIA,
    Alan
     
    Alan Henderson @ A'cad Solutions, May 25, 2004
    #1
  2. Alan Henderson @ A'cad Solutions

    BillZ Guest

    BillZ, May 25, 2004
    #2
  3. Thanks Jon,
    This gets me started down the right path.
    Alan
     
    Alan Henderson @ A'cad Solutions, May 25, 2004
    #3
  4. I followed your advice and downloaded your ADOlisp files.

    I read the PDF and modified the code for Excel.




    I can open the Excel file, but I haven't figured out how to read the Excel
    file.

    File name = Rate.xls

    Sheet names = Events,Operations




    If tried many variations to read file, but can't figure out how to read the
    file, examples -

    SQL line = (setq SQLStatement "SELECT * FROM Events")

    SQL line = (setq SQLStatement "SELECT * FROM [Events$]")

    SQL line = (setq SQLStatement "SELECT * FROM [Events$A1:B4]")

    SQL line = (setq SQLStatement "SELECT * FROM Events$A1:B4")



    Your program works fine for the Access database, but I just can't figure out
    the next step.
     
    Alan Henderson @ A'cad Solutions, May 25, 2004
    #4
  5. Never mind, I had a typo that I just found and now the program is working.
    Thanks again for the original push.
     
    Alan Henderson @ A'cad Solutions, May 25, 2004
    #5
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.