Hi all,
I have to run number od macros in which only 1 word is changing. The macros are relatively long. In order to make the code shorter, and easier to maintain (since there will be change to some of the phrases in the future) I like to make a loop which will go through the phrases and replace them in the code.
To each letter from "a" to "h" is dedicated phrase. The code should run loop from a to h and in message box to show the dedicated phrase.
Below are simplified codes for what I like to achieve.
Below is code which shows how the finished code should behave.
![]()
Please Login or Register to view this content.
This is my attempt above code to make with loop. It goes through the letters but is not displaying the phrases, rather it displays the letters.
can anyone help me with this.![]()
Please Login or Register to view this content.
Thank you in advance for your help.
Igor
Bookmarks