Results 1 to 5 of 5

Public Variable

Threaded View

Digitborn.com Public Variable 04-09-2007, 10:22 AM
mikerickson Its not the public deleration... 04-09-2007, 10:38 AM
Digitborn.com When I put Hide Me - it... 04-09-2007, 10:57 AM
Leith Ross Hello Digitborn.com, Move... 04-09-2007, 11:10 AM
Digitborn.com That's it! This time it... 04-09-2007, 03:54 PM
  1. #1
    Registered User
    Join Date
    03-28-2007
    Posts
    27

    Public Variable

    Hello,

    I have a problem with using one variable (username) in several UserForm captions. My code is:

    UserForm - frmLogin
    PHP Code: 
    Option Explicit
    Public user As String

    If "secret" Then MsgBox ("Successful 1 - John!")
           
    Unload Me
    user 
    "John"
           
    UserForm2.Caption "Admin - " user
           UserForm2
    .Show 
    UserForm2.Caption is correct but then:

    UserForm1 code:
    PHP Code: 
    Public user As String
    Private Sub CommandButton5_Click()
        
    Unload Me
        UserForm1
    .Caption "Form 1 - " user
        UserForm1
    .Show
    End Sub 
    On UserForm1 the Caption is not showing
    Last edited by VBA Noob; 04-09-2007 at 10:25 AM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1