Message 1 of 4
Ilogic loop to excell problem

Not applicable
08-13-2014
12:33 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi InventorWizardz,
I have a problem with the folowing script:
Ivolume = iProperties.Volume/1000 '(in cm^3)GoExcel.CellValue("3rd Party:Embedding 2", "Blad1", "A2") = Ivolume
Parameter("HoogteVolumePercent") = 1
i = 1
If Parameter("HoogteVolumePercent") < 100 Then
While (Parameter("HoogteVolumePercent") < 100)
GoExcel.CellValue("3rd Party:Embedding 2", "Blad1", "C"&i) = Ivolume
i = i + 1
If i = 100 Then
Exit While
End If
End While
End If
iLogicVb.UpdateWhenDone = True
The purpose is to export the value of Ivolume at a certain percentage to an embedded Excel. But the when running this rule every cell has the same value.
I think Ilogic is writing the value after the completion of the rule. But I can't figue it out to get it to work.
In Attachements you can find a screenshot and the part (made in IV2013).
Hope someone can help