I need to know, are the workbook events I can assign a macro towards.
I have the sheet events down, but when I create a new sheet, duplicate, whatever, that sheet also needs the benefit of the sheet events I installed on the first sheet.
I need to know, are the workbook events I can assign a macro towards.
I have the sheet events down, but when I create a new sheet, duplicate, whatever, that sheet also needs the benefit of the sheet events I installed on the first sheet.
question being if you even read answers
I started by setting a sheet event to begin with. That does well enough.
When I duplicate a sheet, I want to set the same EH for that sheet.
I’m looking into perhaps Activate document events as a way to inspect workbook or ThisComponent.Sheets
events.
Maybe as indicated there are more or better ways of connecting those dots.
Edit: Really, though, I just need a “new sheet” or “sheet duplicated” event, if I can find it.
To clarify, prototype sheet, I did this manually, from Sheet > Sheet Events menu.
How do I do that in code, for new sheets, duplicated sheets, etc.
I need a way of connecting with the workbook sheet events, if possible. Alternatively, I am exploring a slightly more circuitous route via activated documents, but this does not seem quite right either.
Any constructive ideas? Thoughts? Events I might look into otherwise connecting these dots?
Best.
Thank you for that. That’s one half the question. The front side of it is, which document or other events might I be subscribing to in order to resolve either addition, duplication, etc, of a sheet? Alternatively, document being active may be an adequate fall back position. Again, I do not know the best possible way here, just asking the question, if there are suggestions, I’m happy to consider all. Thanks so much…