Message 1 of 8
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
I made an iLogic code that does the following:
Sub Main
oExDoc = "C:\Data\ExDoc.xlsx"
oSheet1 = "Sheet1"
oSheet2 = "Sheet2"
GoExcel.Open(oExDoc, oSheet1)
GoExcel.Open(oExDoc, oSheet2)
Dim i As Integer = 1
Dim CellValue As String
GoExcel.CellValue(oExDoc, oSheet1, "A1") = i
GoExcel.Save
GoExcel.Close
GoExcel.Open(oExDoc, oSheet1)
GoExcel.Open(oExDoc, oSheet2)
CellValue = GoExcel.CellValue(oExDoc, oSheet2, "A1")
MsgBox(CellValue)
GoExcel.Close
End Sub
In the Exceldocument i have a Excelfunction that makes Cell A1 on Sheet2 is equal to Cell A1 on Sheet1, then adds 1...
(Cell A1 on Sheet2; =Sheet1!A1+1
So if A1 on Sheet1 = 1
Then A1 on Sheet2 should be: 2
The MessageBox However shows '1', which is not correct, Excel seems to not update or save?
Because when i open the Excel Document manually cell A1 on Sheet2 is; 2 as it is supposed to be
Solved! Go to Solution.