Imagine a Workbook with 5 Sheets. Each sheet has different countries in col A, the corresponding Capital City in B and say the population in C.
I am trying to code the use of FIND in VBA such that for any given list countries:
for i = 1 to no of countries to investigate
-search the entire workbook for country i
- if country i is found in the list
- bring in its associated capital and population in the next column of the same row of the country in question
- If not next i
next i
I find that the display of the find result restricts any form of loop action to take place hence intervening the macro on each iteration. Any suggestion?
I am trying to code the use of FIND in VBA such that for any given list countries:
for i = 1 to no of countries to investigate
-search the entire workbook for country i
- if country i is found in the list
- bring in its associated capital and population in the next column of the same row of the country in question
- If not next i
next i
I find that the display of the find result restricts any form of loop action to take place hence intervening the macro on each iteration. Any suggestion?