I do not know how to write down the value of Variable Tags excel file.
I used in the project named tag1
I do not know how to write the value "tag1" to excel
with this code, it's time to call Citect executable files but not write the value
to excel
someone help me with the code above runs ok


I will send one key Citect 7.5 crack



code://///////////////////
Sub WriteToExcelFile()
Dim objExcelApp As Object
Set objExcelApp = CreateObject("Excel.Application")
objExcelApp.Visible = True
'ExcelExample.xls is to create before executing this procedure.
'Replace with the real path of the file ExcelExample.xls.
objExcelApp.Workbooks.Open "D:\report.xls "
objExcelApp.Cells(2, 2).Value= tag1.Value
objExcelApp.Cells(3, 2).Value = 1
objExcelApp.Cells(4, 2).Value = 2
objExcelApp.ActiveWorkbook.Save
objExcelApp.Workbooks.Close
objExcelApp.Quit
Set objExcelApp = Nothing
End Sub
////////////////////