Thank you for your reply. I have already created macros for small tasks by watching several videos on YouTube. However, the conditions mentioned above for the macros were also inquired from ChatGPT, but it did not provide accurate answers. Hence, I had to raise this question in the forum.