Message 1 of 5
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi guys. I have a simple rule for export and import data from Excel sheet. I need to update the document before data exchange occurs.
I run the rule through the Forms, but it works with an old data for the first try. I have to run it twice to get it updated properly. Am I missing something?
InventorVb.DocumentUpdate()
If P1_A>0 Then
GoExcel.CellValue(P1__EXCEL + ".xlsx", "VYPOCET", "G31") = P1_A
End If
If P1_B>0 Then
GoExcel.CellValue(P1__EXCEL + ".xlsx", "VYPOCET", "H31") = P1_B
End If
P1__SsO = GoExcel.CellValue(P1__EXCEL + ".xlsx", "VYPOCET", "AA9")
P1__SsC = GoExcel.CellValue(P1__EXCEL + ".xlsx", "VYPOCET", "AA10")
GoExcel.Save
Solved! Go to Solution.