drana325
05-21-2016, 11:03 AM
Hello I have an excel sheet with 50 names and passwords.
Is there a way that i can read the usernames and passwords from excel through powerpoint.
So here's what i have... The User enters their name in an Input box.
the next screen shows UserID and Password.
the User has to enter their userID and Password within the textboxes.
If the UserID and Password matches with the Username then they advance to the next slide
I was inputting them in powerpoint,
as this But i can't add more... (i'm really new to this) :
Sub TextBoxResults1()
If UserName = "Dimple" _
And Slide1.TextBox3.Text = "999" _
And Slide1.TextBox4.Text = "Password" _
And Slide1.TextBox5.Text = "" _
Or _
UserName = "TaLe" _
And Slide1.TextBox3.Text = "702" _
And Slide1.TextBox4.Text = "12368797" _
And Slide1.TextBox5.Text = "" _
Or _
UserName = "Hector" _
And Slide1.TextBox3.Text = "519" _
And Slide1.TextBox4.Text = "12368798" _
And Slide1.TextBox5.Text = "" _
Or _
UserName = "Jason" _
And Slide1.TextBox3.Text = "446" _
And Slide1.TextBox4.Text = "12345684" _
And Slide1.TextBox5.Text = "" _
Or _
UserName = "Sari" _
And Slide1.TextBox3.Text = "695" _
And Slide1.TextBox4.Text = "12368799" _
And Slide1.TextBox5.Text = "" _
Or _
UserName = "Rana" _
And Slide1.TextBox3.Text = "505" _
And Slide1.TextBox4.Text = "12368800" _
And Slide1.TextBox5.Text = "" _
Or _
UserName = "VuDo" _
And Slide1.TextBox3.Text = "716" And _
Slide1.TextBox4.Text = "12368801" _
And Slide1.TextBox5.Text = "" _
Then
Call TextBoxCorrect66
Else
Call TextBoxWrong66
End If
End Sub
is there anyway to make this shorter and read the username, id, and password from the xls file?
Is there a way that i can read the usernames and passwords from excel through powerpoint.
So here's what i have... The User enters their name in an Input box.
the next screen shows UserID and Password.
the User has to enter their userID and Password within the textboxes.
If the UserID and Password matches with the Username then they advance to the next slide
I was inputting them in powerpoint,
as this But i can't add more... (i'm really new to this) :
Sub TextBoxResults1()
If UserName = "Dimple" _
And Slide1.TextBox3.Text = "999" _
And Slide1.TextBox4.Text = "Password" _
And Slide1.TextBox5.Text = "" _
Or _
UserName = "TaLe" _
And Slide1.TextBox3.Text = "702" _
And Slide1.TextBox4.Text = "12368797" _
And Slide1.TextBox5.Text = "" _
Or _
UserName = "Hector" _
And Slide1.TextBox3.Text = "519" _
And Slide1.TextBox4.Text = "12368798" _
And Slide1.TextBox5.Text = "" _
Or _
UserName = "Jason" _
And Slide1.TextBox3.Text = "446" _
And Slide1.TextBox4.Text = "12345684" _
And Slide1.TextBox5.Text = "" _
Or _
UserName = "Sari" _
And Slide1.TextBox3.Text = "695" _
And Slide1.TextBox4.Text = "12368799" _
And Slide1.TextBox5.Text = "" _
Or _
UserName = "Rana" _
And Slide1.TextBox3.Text = "505" _
And Slide1.TextBox4.Text = "12368800" _
And Slide1.TextBox5.Text = "" _
Or _
UserName = "VuDo" _
And Slide1.TextBox3.Text = "716" And _
Slide1.TextBox4.Text = "12368801" _
And Slide1.TextBox5.Text = "" _
Then
Call TextBoxCorrect66
Else
Call TextBoxWrong66
End If
End Sub
is there anyway to make this shorter and read the username, id, and password from the xls file?