Hi
In the dummy sample file attached, there are 2 worksheets named week wise i.e. Week of 29 July, Week of 5 August. In the actual document, there will be about 10 tabs belonging to each week. Each individual week will have data date-wise i.e. Mon 29 July, Tue 30 July, till Fri 2 Aug.
Requirement: At the touch of a button (e.g. Email Monday in the sample file) all the data under Monday only should be emailed as a pdf file. Similarly, when button Email Tuesday is clicked, all the data under Tuesday only should be emailed as a pdf file.
However, there is a catch. Before the data is emailed, all names of the volunteers must get deleted.
I have recorded Macros for Monday and Tuesday. These work well. (For Wed, Thu and Fri, I will record it later).
I want to create a Template, containing 10 tabs. Every time the next 10 weeks is to be prepared this template will be used.
Issue: In the template, how the macro could be modified so that, instead of the reference to the particular week (as in the sample sheet i.e. Week of 29 July as an example), it could say Active Sheet. Thereby meaning, the Monday macro gets activated for any active sheet only. Similarly, macro gets activated for any active sheet only when activating Email Tuesday button.
I hope I have made myself clear.
Any help would be greatly appreciated.
Regards
t
In the dummy sample file attached, there are 2 worksheets named week wise i.e. Week of 29 July, Week of 5 August. In the actual document, there will be about 10 tabs belonging to each week. Each individual week will have data date-wise i.e. Mon 29 July, Tue 30 July, till Fri 2 Aug.
Requirement: At the touch of a button (e.g. Email Monday in the sample file) all the data under Monday only should be emailed as a pdf file. Similarly, when button Email Tuesday is clicked, all the data under Tuesday only should be emailed as a pdf file.
However, there is a catch. Before the data is emailed, all names of the volunteers must get deleted.
I have recorded Macros for Monday and Tuesday. These work well. (For Wed, Thu and Fri, I will record it later).
I want to create a Template, containing 10 tabs. Every time the next 10 weeks is to be prepared this template will be used.
Issue: In the template, how the macro could be modified so that, instead of the reference to the particular week (as in the sample sheet i.e. Week of 29 July as an example), it could say Active Sheet. Thereby meaning, the Monday macro gets activated for any active sheet only. Similarly, macro gets activated for any active sheet only when activating Email Tuesday button.
I hope I have made myself clear.
Any help would be greatly appreciated.
Regards
t