Results 1 to 2 of 2
  1. #1
    afshin is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Apr 2011
    Posts
    63

    excel objects does not registered in reference.


    I can't find the Microsoft Excel Object Library in Access VBA reference. Also, this is not shown as missing references. So when I use this "Dim X As New Excel.Application" in my VBA code, Access VBA shows an error as below:
    "Compile error:
    user-defined type not defined."

  2. #2
    Join Date
    Jan 2017
    Location
    Swansea,South Wales,UK
    Posts
    4,938
    Mine in 2007 is just the excel.exe in the Excel folder, so add it manually?

    Or run a repair? or late bind?

    I am assuming of course that you do have Excel installed?
    Please use # icon on toolbar when posting code snippets.
    Cross Posting: https://www.excelguru.ca/content.php?184
    Debugging Access: https://www.youtube.com/results?sear...bug+access+vba

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Excel Table Reference
    By Thompyt in forum Programming
    Replies: 8
    Last Post: 11-17-2022, 11:38 AM
  2. Replies: 10
    Last Post: 08-27-2017, 09:00 PM
  3. Replies: 1
    Last Post: 05-04-2016, 09:32 AM
  4. reference objects on subform
    By gammaman in forum Modules
    Replies: 2
    Last Post: 08-27-2015, 07:31 AM
  5. Replies: 6
    Last Post: 12-19-2013, 12:34 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums