DIM means the meaning of statement, and private is private, DIM is only used to declare variables, because the default statement of variables is private, so DIM and private are basically the same on the declaration variable. Private and public refers to the type of access to variables, procedures, and functions. It is not only used for variables, but also for objects, processes, functions.
Such as: Private function add (A1 AS Integer, A2 As Integer) AS Integer
Add = a1 a2
END FUNCTION
The add function can only be called in the defined module.