I have a project divided into several subs, with some global variables. It works perfectly on 2 computers (mine and another one that I tested), but it doesn't work on a 3rd computer.

The code looks like this:

[vba]
Public Sub Main ()

Dim k As Integer

Call Macro1

...


End Sub

Public Sub Macro1 ()

k = ...

End Sub
[/vba]

I don't declare k in Macro1 again, and the 3rd computer gives an error "Can't access to the project" when I try to access k. Why isn't it working? What have I got to change on this computer so that everything works properly