I am making a random word generator for use in my Global Studies class for a game with the Cyrillic alphabet. I found a VBA setup for PowerPoint 2016 to pull random words from a text file. The problem is, it won't show the Cyrillic. I have tried changing the encoding in the VBA Tools. I have made sure to try different encoding settings for the .txt file, but I can't seem to get actually Cyrillic letters in the label.
The VBA code that I'm using is:
Public myArray, Word1
Sub OnSlideShowPageChange(ByVal SSW As SlideShowWindow)
If SSW.View.CurrentShowPosition = 2 Then
Randomize
Label1.Caption = ""
Dim path
path = ActivePresentation.path & "\words.txt"
Open path For Input As #1
filecontent = Input(LOF(1), #1)
Close #1
myArray = Split(filecontent, vbCrLf)
End If
End Sub
Private Sub CommandButton1_Click()
Word1 = Int((UBound(myArray)) * Rnd)
Label1.Caption = myArray(Word1)
End Sub
Private Sub Label1_Click()
End Sub