0

I am trying to test out my code that I have written, and when I go to run my AutoExec macro, I get the error

"User-defined type not Defined"

on the following line of code:

Public Sub WFR_Style(xlBook As Excel.Workbook)

I have the following references set up under my Tools->References:

  • Microsoft Access 16.0 Object Library
  • OLE Automation
  • Microsoft ActiveX Data Objects 6.1 Library
  • Microsoft Outlook 16.0 Object Library
  • Microsoft Office 16.0 Access database engine object library
  • Visual Basic for Applications

Am I missing any?

Pᴇʜ
  • 56,719
  • 10
  • 49
  • 73
Jenna Terral
  • 67
  • 2
  • 11

0 Answers0