Trích dẫn Gửi bởi thiquocvinh Xem bài viết
Mình mới tìm hiểu WinCC V7 được một thời gian. Bây giờ đang tìm cách xuất dữ liệu từ WinCC V7.0 SP2 sang MS Excel.
Mình có đọc được một đoạn code trong phần . Mọi người cùng thảo luận nha.

MS Excel
In this example, an output value from an input field is written in an Excel table

'VBS113
Dim objExcelApp
Set objExcelApp = CreateObject("Excel.Application")
objExcelApp.Visible = True
'
'ExcelExample.xls is to create before executing this procedure.
'Replace <path> with the real path of the file ExcelExample.xls.
objExcelApp.Workbooks.Open "<path>\ExcelExample.xls"
objExcelApp.Cells(4, 3).Value = ScreenItems("IOField1").OutputValue
objExcelApp.ActiveWorkbook.Save
objExcelApp.Workbooks.Close
objExcelApp.Quit
Set objExcelApp = Nothing
Chào bạn !
Mình cũng đang tìm hiểu về vấn đề này.Không biết bạn đã làm OK vấn đề này chưa? Tôi cũng đã làm thử như VD trong đó nhưng khi xuất ra Excel thì không thấy dữ liệu của IOField đâu?
Bác nào làm rùi có thể chia sẻ một chút kinh nghiệm với. Cám ơn nhiều