Hi all. I connected my pc to a PLC and I can read the values of the desired variables. The problem is, that I cannot copy them. So, I have for example in cell A1 the variable weight and I see values 1985, 1876.... etc. I want to store them. Be able to copy them and after that make charts. I tried this code:
Code
Private Sub Worksheet_Calculate()
Worksheets("Sheet1").Range("Output").Value = Range("Input").Value
Worksheets("Sheet1").Range("Time").Value = Time
ThisWorkbook.Names("Output").RefersTo = Worksheets("Sheet1").Range("Output").Offset(1, 0)
ThisWorkbook.Names("Time").RefersTo = Worksheets("Sheet1").Range("Time").Offset(1, 0)
End Sub
With this code i can only copy the first value. Thanks