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!
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!