Create a table and reference it
问题 I am trying to read every two lines of text, create a slide, and insert each line in the cells of a 2 by 1 table respectively using VBA code. Public Sub newSlide() Dim FileNum As Integer Dim DataLine As String Dim Count As Integer Count = 0 FileNum = FreeFile() Open "C:\Users\ADMININST\Documents\my.txt" For Input As #FileNum While Not EOF(FileNum) Count = Count + 1 Line Input #FileNum, DataLine ' read in data 1 line at a time ' decide what to do with dataline, ' depending on what processing