Preventing Excel from updating the screen in C#
问题 I am writing an add-in in VIsual C# for Excel 2010. This add-in retrieves some data from a we service and writes the results into cells of a certain spreadsheet. However I don't want Excel to display filling the cells with values as this takes a lot of time. So I tried the following piece of code: ExcelApp = (Excel.Application)System.Runtime.InteropServices.Marshal.GetActiveObject("Excel.Application"); ExcelApp.ScreenUpdating = false; GetFolderTreeRecursive(FolderTree); ExcelApp