Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Cell Value in excel it is not updating the referenced function cell#1509

ahmadjf93 announced inQ&A
Discussion options

I have problem in this excel:
Excel Sheet for INT-2073.xlsx
I am trying to update cell B1 but C1 which contains function referencing to A1 and B2 it is not updating the value.
This is the code I am using

Dim FileName As StringPublic OutputDoc As SpreadsheetDocumentDim AltChunkCount As Long = 0Dim MainPart As WorkbookPartDim MainPartSheets As SheetsDim MainPartSheetData As SheetDataPublic Sheets As New ArrayListFileName = OpenFileNameOutputDoc = SpreadsheetDocument.Open(FileName, True)MainPart = OutputDoc.WorkbookPartMainPartSheets = MainPart.Workbook.GetFirstChild(Of Sheets)()AltChunkCount = 1Dim ExcelWorkbook As Workbook = ExcelDocument.OutputDoc.WorkbookPart.WorkbookOutputDoc.WorkbookPart.Workbook.CalculationProperties.ForceFullCalculation = TrueOutputDoc.WorkbookPart.Workbook.CalculationProperties.FullCalculationOnLoad = TrueDim CurrentCell As Cell = GetCell("sheet1", 1, "B")    If CurrentCell IsNot Nothing Then        CurrentCell.CellValue = New CellValue(Value)        CurrentCell.DataType = CellValues.Number    End IfMainPart.Workbook.Save()OutputDoc.Close()
You must be logged in to vote

Replies: 0 comments

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Category
Q&A
Labels
None yet
1 participant
@ahmadjf93

[8]ページ先頭

©2009-2025 Movatter.jp