使用C#将数据从一个Excel文件复制到另一个excel文件,并将每个单元格格式化为文本 [英] Copy data from one excel file into another using C# and format every cell as text

查看:569
本文介绍了使用C#将数据从一个Excel文件复制到另一个excel文件,并将每个单元格格式化为文本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



我想从一个excel文件中复制数据并将其粘贴到另一个excel文件中,但我想将其粘贴为文本类别在使用C#的第二个excel文件中。

如果有人可以指导我如何做到这一点,我将感激不尽。



期待你的回复。



谢谢



我的尝试:



搜索谷歌,但只发现如何粘贴到第二个excel文件。我想将其粘贴到特定的文本类别

Hello all,

I want to copy data from one excel file and paste it into another but i want to paste it as text category in second excel file using C#.
Would be thankful if anyone can guide me on how to do that.

Looking forward to your responses.

Thanks

What I have tried:

Searched google but have only found how to paste into second excel file. I want to paste it in a specific text category

推荐答案

这是一篇CodeProject文章,介绍如何使用C#中的Excel:使用C#使用Excel [ ^ ]



你可以找到其他人这里: excel with c#tutorial - Google Search [ ^ ]



最后,要了解您的C#代码需要什么,这里有一篇关于如何使用我们的文章e Eccel Macro Recorder:使用宏记录器自动执行任务 - Excel [ ^ ]
Here is a CodeProject article that introduces you how to work with Excel from C#: Working with Excel Using C#[^]

You can find others here: excel with c# tutorial - Google Search[^]

And lastly, to see what is needed for your C# code, here is an article on how to use the Eccel Macro Recorder: Automate tasks with the Macro Recorder - Excel[^]


这篇关于使用C#将数据从一个Excel文件复制到另一个excel文件,并将每个单元格格式化为文本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆