Skip to content

Latest commit

 

History

History
20 lines (14 loc) · 1.32 KB

cannot-define-a-kwid_tkpublic-user-defined-type-within-a-private-object-module.md

File metadata and controls

20 lines (14 loc) · 1.32 KB
title keywords f1_keywords ms.assetid ms.date ms.localizationpriority
Cannot define a KWID_tkPUBLIC user-defined type within a private object module
vblr6.chm1040352
vblr6.chm1040352
594b1460-9990-57c6-9483-003827033d27
03/14/2022
medium

Cannot define a KWID_tkPUBLIC user-defined type within a private object module

A user-defined type that appears within an object module can't be Public. This error has the following cause and solution:

  • You tried to define a Public user-defined type in an object module. Move the user-defined type definition to a standard module, and then declare variables of the type in the object module or other modules, as appropriate. If you only want the type to be available in the module in which it appears, you can place its Type...End Type definition in the object module and precede its definition with the Private keyword.

For additional information, select the item in question and press F1 (in Windows) or HELP (on the Macintosh).

[!includeSupport and feedback]