In Excel, it appears that a worksheet can be identified one of three ways: by Index, by Name, or when looking in the properties sheet in the VBA window, by a property marked as (Name).
Now, I have a subroutine that copies the current worksheet and places it at the end of the workbook. Say the sheet has the following properties:
Index = 1, Name = "MySheet", (Name) = "Sheet1".
If I copy it, the new shett will have the following properties:
Index = 2, Name = "MySheet (2) ", (Name) = "Sheet11".
And copying that one, will give;
Index = 3, Name = "MySheet (3) ", (Name) = "Sheet111".
Now, using VB, is there anyway to firstly retrieve that property, and secondly set that property.
Now, I have a subroutine that copies the current worksheet and places it at the end of the workbook. Say the sheet has the following properties:
Index = 1, Name = "MySheet", (Name) = "Sheet1".
If I copy it, the new shett will have the following properties:
Index = 2, Name = "MySheet (2) ", (Name) = "Sheet11".
And copying that one, will give;
Index = 3, Name = "MySheet (3) ", (Name) = "Sheet111".
Now, using VB, is there anyway to firstly retrieve that property, and secondly set that property.