Results 1 to 3 of 3
  1. #1
    Join Date
    Apr 2002
    Posts
    44

    Unanswered: Where to declare a global variable?

    Where in VBA code do I go to define a "Global" variable that I can then use to carry a value anywhere in my project?

    (I am using a "login" form, and I want to carry around the user's login name, without having to manually pass the value from form to form)

    Thanks.

  2. #2
    Join Date
    Apr 2002
    Location
    Portugal
    Posts
    146
    Silentbob,

    Declera apublic variable in a module
    like this:

    Public MyVariable As Long

  3. #3
    Join Date
    Apr 2002
    Posts
    44
    ok, thanks...that worked....still trying to get used to this VB programming environment...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •