Click here to Skip to main content
15,887,821 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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
Posted
Updated 12-Sep-17 22:25pm
Comments
Graeme_Grant 13-Sep-17 4:03am    
Record and Excel Macro and it will do the coding for you. Then if you need to customise, it becomes very easy.

Also, your question sounds very much like this one that I answered earlier: Copy/paste data from sheet1 to sheet2 by matching rows by value in column 1[^]
Faran Saleem 13-Sep-17 4:05am    
I want it to do using C# code.
Graeme_Grant 13-Sep-17 4:22am    
Still, when working with Excel, you need to know what the commands are... Recording Macros to see what they are is the first step.
Faran Saleem 13-Sep-17 4:06am    
I want to copy data from one excel and paste it to another in text format

1 solution

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[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900