carlasilva
Programmer
Why when writing the code below, Visual basic indicates an error in the third line? if it was Set xlSheet = xlBook.Worksheets(1) or Set xlSheet =xlBook.Worksheets(2) or Set xlSheet =xlBook.Worksheets(3) he accpet.
Set xlApp = CreateObject("Excel.Application"
Set xlBook = xlApp.Workbooks.Add
Set xlSheet = xlBook.Worksheets(4)
xlBook.Worksheets(4).Name = "T"
xlSheet.Cells(1, 1).Value = "n"
Thank you very much.
Set xlApp = CreateObject("Excel.Application"
Set xlBook = xlApp.Workbooks.Add
Set xlSheet = xlBook.Worksheets(4)
xlBook.Worksheets(4).Name = "T"
xlSheet.Cells(1, 1).Value = "n"
Thank you very much.