Hello There,
I would like to have a VBA Sub which would do the following:
Below varaibles:
a. l_Paragraph =
"A string is any series of characters that are interpreted literally by a script. :x_For example, hello world :x_and LKJH019283 are both examples of strings. In computer :x_programming, a string is attached to a variable as :x_shown in the example below."
b. l_SearchString = ":"
The paragraph block can have multiple lines (with enter signs).
1. Loop till True
............a. in variable l_paragraph, search for the 1st occurence of the string (l_SearchString)
............b. When found
........................i. Then list it's whole word in the worksheet starting with Range A1 and so on
........................ii. Replace the searched character/string found ":" with "#!LAPS!#"
........................iii. True
........................iv. Loop for next occurence
............c. When Not Found then False, out of Loop
Example Output:
Sheet1 A1 = x_For
Sheet1 A2 = x_and
Sheet1 A3 = x_programming (This word is having a ',' at the end, should be excluded)
Sheet1 A4 = x_shown
l_paragraph =
"A string is any series of characters that are interpreted literally by a script. #!LAPS!#x_For example, hello world #!LAPS!#x_and LKJH019283 are both examples of strings. In computer #!LAPS!#x_programming, a string is attached to a variable as #!LAPS!#x_shown in the example below."
Thank you and look forward to hearing from you
Regards,
Don
I would like to have a VBA Sub which would do the following:
Below varaibles:
a. l_Paragraph =
"A string is any series of characters that are interpreted literally by a script. :x_For example, hello world :x_and LKJH019283 are both examples of strings. In computer :x_programming, a string is attached to a variable as :x_shown in the example below."
b. l_SearchString = ":"
The paragraph block can have multiple lines (with enter signs).
1. Loop till True
............a. in variable l_paragraph, search for the 1st occurence of the string (l_SearchString)
............b. When found
........................i. Then list it's whole word in the worksheet starting with Range A1 and so on
........................ii. Replace the searched character/string found ":" with "#!LAPS!#"
........................iii. True
........................iv. Loop for next occurence
............c. When Not Found then False, out of Loop
Example Output:
Sheet1 A1 = x_For
Sheet1 A2 = x_and
Sheet1 A3 = x_programming (This word is having a ',' at the end, should be excluded)
Sheet1 A4 = x_shown
l_paragraph =
"A string is any series of characters that are interpreted literally by a script. #!LAPS!#x_For example, hello world #!LAPS!#x_and LKJH019283 are both examples of strings. In computer #!LAPS!#x_programming, a string is attached to a variable as #!LAPS!#x_shown in the example below."
Thank you and look forward to hearing from you
Regards,
Don