Results 1 to 6 of 6

Thread: vlax command does not work - excel 2007 / windows vista

  1. #1
    Member
    Join Date
    2002-05
    Posts
    3
    Login to Give a bone
    0

    Default vlax command does not work - excel 2007 / windows vista

    I bought a notebook with excel 2007 and windows vista, and I've been using for long a lisp routine that reads values from a given excel tabel to make a draw in AutoCad. It worked very well with excel 97 / windows XP or windows 2000.

    The error seams to be in the bellow command:
    (setq excel-app (vlax-get-or-create-object "Excel.application"))

    AutoCad command line returns :
    error: COM exception: Error accessing the OLE registry , e depois dá...
    error: no function definition: VLAX-GET-OR-CREATE-OBJECT

    Wath to do ?
    Thank for helping me,

    Victor

  2. #2
    I could stop if I wanted to
    Join Date
    2002-02
    Location
    Kansas
    Posts
    487
    Login to Give a bone
    0

    Default Re: vlax command does not work - excel 2007 / windows vista

    Check your registry for

    HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Excel.Application

    If it not there that way it not working.

    Check for
    HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Excel.Application.12

    This key shuld be Excel 2007.

    Try
    Code:
    (setq excel-app (vlax-get-or-create-object "Excel.application.12"))

  3. #3
    AUGI Addict
    Join Date
    2015-12
    Posts
    2,095
    Login to Give a bone
    0

    Default Re: vlax command does not work - excel 2007 / windows vista

    Sounds like you are missing a call to (vl-load-com) somewhere along the start-up.

  4. #4
    Member
    Join Date
    2002-05
    Posts
    3
    Login to Give a bone
    0

    Default Re: vlax command does not work - excel 2007 / windows vista

    Thank you, but the problem is not the "missing a call to (vl-load-com)" ... it is there in the lisp program since 2003... it really sounds a problem of excel 2007 and/or windows vista...

    Best regards,
    Victor Sereno - Rio de Janeiro - Brazil ...

  5. #5
    Certifiable AUGI Addict
    Join Date
    2015-11
    Location
    Jo'burg SA
    Posts
    4,512
    Login to Give a bone
    0

    Default Re: vlax command does not work - excel 2007 / windows vista

    Does your Office 2007 have VBA enabled? Not sure if this is the case, but it may be as VL uses the ActiveX connections (which is basically VBA). VBA is supposed to become extinct, so M$ don't install it by default.

    I had some probs with VBA code I did for Outlook 2003. Had to reinstall Office 2007 with custom & add VBA. Then my code worked. But then, that code didn't run from ACad ... worth a try though.

  6. #6
    Member
    Join Date
    2002-05
    Posts
    3
    Login to Give a bone
    0

    Default Re: vlax command does not work - excel 2007 / windows vista

    IRNEB...
    Thaks a lot, I will try to reinstall MSoffice 2007 with custom & add VBA....

    Victor...

Similar Threads

  1. Windows 7 - Windows 7 64-bit and Excel 2007 Issue with AutoCAD Tables
    By RobertB in forum Operating Systems
    Replies: 0
    Last Post: 2010-03-08, 09:29 PM
  2. Replies: 3
    Last Post: 2009-09-15, 04:09 AM
  3. Will AutoCAD 2007 be supported on Windows Vista
    By rmk in forum AutoCAD General
    Replies: 26
    Last Post: 2007-09-18, 07:02 PM
  4. Running AutoCAD 2007 on Windows Vista?
    By Jack Cheong in forum AutoCAD General
    Replies: 5
    Last Post: 2007-04-09, 11:26 AM
  5. Running Architectural Desktop 2007 on Windows Vista?
    By edward.kohles in forum ACA General
    Replies: 6
    Last Post: 2007-04-02, 11:09 PM

Posting Permissions

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