Hi everyone i have an excel file which i want to use as source for new excel files.I saw some examples that can copy all sheets,however my problem is that i want to copy only selected sheets from the source file and create new file with the selected sheets. e.g. this would be like if my main table has sheets x,y,z,c,f,g and user selects z,f,g i will only select these three create a new .xlsx file and put them there.Is this possible with c#? thank you in advance
相关问题
- Sorting 3 numbers without branching [closed]
- Graphics.DrawImage() - Throws out of memory except
- Generic Generics in Managed C++
- Why am I getting UnauthorizedAccessException on th
- 求获取指定qq 资料的方法
You can copy the selected sheets for example in VBA, The below will create a new workbook with selected sheets
In C#, you can so the same thing as
Screenshot
yes it is possible in command prompt you can use copy command to copy the files from many excel sheets to single sheet the command is c:/path of the file copy sourcefile destinationfile
thanks