Dim Book As New XLS.Book("d:\\test.xls")
Dim Sheet As XLS.Sheet = Book.Sheets(0) \'引用工作簿的第一个工作表
For i As Integer = 1 To 31 \'向工作表的单元格中设置值
Sheet(4, i*2+2).Value = "<iif([d" & Format(i, "00") & "r_s]=0.5,""√"","""")>"
Sheet(4, i*2+3).Value = "<iif([d" & Format(i, "00") & "r_x]=0.5,""√"","""")>"
Next
book.save("d:\\test.xls")