0

The following statement

Dim NewFrame As MSForms.Frame

is giving compile time error:

'User defined type not defined'.

Can anyone suggest how to fix this issue ?

Brien Foss
  • 3,336
  • 3
  • 21
  • 31
Tejas Kore
  • 11
  • 3

1 Answers1

1

To access the methods, properties and members of a MSForms object, go to the VBE's Tools, References and put a check mark beside “Microsoft Forms 2.0 Object Library” (or similar for your version). This will link the FM20.DLL (or similar for your version) from your O/S's system32 folder.