Skip to main content

Search

Search

Vb Script For Unique Picture For User

Comments

2 comments

  • Avatar
    Ian Cummings
    Moderator

    Yes, VB Script will be needed.

     

    Create a new picture object that uses a data source.  Set the path for the picture files folder, and for the picture file name choose the multi line or event based VB script data source.  Edit the script to have a conditional Select...Case statement like below where you test the "Application.SystemUserName" property value to get the user of who is logged into Windows:

     

    Select Case Application.SystemUserName
    	Case "Johnny"
    	     value = "Apple.jpg"
    	Case "Karen"
                 value = "Fish.jpg"
    End Select
    
    0
  • Avatar
    Legacy Poster

    That worked fantastically! Thank you so much!

    0

Please sign in to leave a comment.