c# - Drop and replace table in Excel via OleDb -


i need replace table created oledbcommand in excel file. new table has same name, has different structure. managed deleting sheet via interop.excel there problem when other sheets refer sheet. formulas lost. noticed creating new table via oledbcommand creates new defined name in names property (names manager). i've tried create new table other name, copy table headers , change name location in:

workbook.names.item(shname, type.missing, type.missing).refersto=oldsheetrange

where oldsheetrange column headers range. unfortunately when try insert new data rows not insert table (no error occurs).

is there option replace table saving reffering formulas?

regards, kuba


Comments

Popular posts from this blog

image - ClassNotFoundException when add a prebuilt apk into system.img in android -

I need to import mysql 5.1 to 5.5? -

Java, Hibernate, MySQL - store UTC date-time -