Quantcast
Channel: NetOffice - MS Office in .NET
Viewing all articles
Browse latest Browse all 1741

New Post: How do I create a new instance of Worksheet?

$
0
0
Thank you Sebastian for your reply! I tried it out and it works. I now however have the following problem:

After creating my own, custom, derived Worksheet and "adding" it by using the replace constructor I can't seem to be able to get it back. That is, if I loop through the Sheets property or use something like Application.ActiveSheet (on a sheet that I know is my derived sheet) I can't cast that to my derived class. It seems to me that I should be able to do that, shouldn't I?

My whole purpose in extending the Worksheet class was that I could add some extra functionality to it, but if I can't get the added object from Sheets as my derived ws then it's all useless.
Thanks a lot for your continued help!

Viewing all articles
Browse latest Browse all 1741

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>