Click here to Skip to main content
15,881,757 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more: , +
Dear All,

I'm creating a windows application in c# where automating MsOffice Excel.

I want to change the view type of excel worksheet, programmatically.

Click here for more details

What I have tried:

can any one please help me.

Thanks in advance
Posted
Updated 8-Jun-17 2:36am
v3
Comments
Richard MacCutchan 8-Jun-17 4:57am    
"I have to change the view type of excel"
What does that mean?
abdul subhan mohammed 8-Jun-17 6:23am    
click or copy paste the url

https://ygenstorage.blob.core.windows.net/aiveo/1d8103b0-3402-4c69-a0b1-11605a303976.png
Richard MacCutchan 8-Jun-17 7:22am    
I still do not know what problem you are trying to solve. However you can always find some help by recording a macro of the steps you want to follow and then converting that into interop calls.
abdul subhan mohammed 12-Jun-17 8:04am    
Thank you v.much Richard, after recording macro.. i got the solution. But do know to record macro for buttons like "Ribbon display","smartart", etc.

1 solution

You can record a macro, as Richard mentioned, doing what it is you want and then look at the code. You can then translate it into C# pretty easily generally speaking.
 
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