MS Powerpoint - Macro/VBA Code Basic Samples Tutorial

Опубликовано: 18 Сентябрь 2026
на канале: SuperNikestar
77,510
103

Am Using MS Powerpoint 2010

Like Me on Facebook
  / 270681279629057  

Here are the Codes...

Code For Password
If TextBox1.Text = "password" Then
SlideShowWindows(Index:=1).View.Next

Else
MsgBox "Try Again", 16, "Incorrect Password"

End If
TextBox1.Text = ""

Code For Two Password
If TextBox1.Text = "password" Then
SlideShowWindows(Index:=1).View.Next
ElseIf TextBox1.Text = "password2" Then
SlideShowWindows(Index:=1).View.Next

Else
MsgBox "Try Again", 16, "Incorrect Password"

End If
TextBox1.Text = ""

Code For "Password/Code and Message"
If TextBox1.Text = "password" Then
MsgBox "Hello"

Else
MsgBox "Try Again", 16, "Incorrect Password"

End If
TextBox1.Text = ""

Code For "Two Password/Code and Message"
If TextBox1.Text = "password" Then
MsgBox "Like SuperNikeStar"
ElseIf TextBox1.Text = "password2" Then
MsgBox "Subscribe SuperNikestar"

Else
MsgBox "Try Again", 16, "Incorrect Password"

End If
TextBox1.Text = ""


Code For Message
MsgBox "Hello"