Tia Portal v15.1
How can I put the date and time in an Excel file with a Visual Basic script?
Can you help me??
Greetings
Visual Basic Script to excell
-
- Posts: 374
- Joined: Wed Oct 13, 2010 8:44 am
- Location: Russian Federation
Re: Visual Basic Script to excell
stackoverflow.com helps you:
But it is a pure VBS example. I have no idea does TIA supports the "CreateObject" directive or not.
Code: Select all
Set objExcel = CreateObject("Excel.Application")
Set objWorkbook = objExcel.Workbooks.Open("Your_Excel_File.xls")
objExcel.cells(1,1).value = "Test value"
objWorkbook.Save
objWorkbook.Close