Hi all,
Thanks for taking the time to read this.
I am trying to solve this problem on a macro I have been working on and getting nowhere.
The Macro is below:
The 'Store Variables' section runs through a worksheet storing the contents of cell (i, 1) as variables PAYNUM(i). To my eyes this works okay.![]()
Please Login or Register to view this content.
The 'Compare Variables' section is meant to run through the range (j, 1) from j = 6 to 1000 and do the following:
1. Compare the contents of cell (j, 1) to variable PAYNUM(i)
2. Run through the cells (j, 1) until either the PAYNUM(i) variables is matched OR (j, 1) hits a empty cell - if this is true it inputs PAYNUM(i) into that empty cell.
3. Repeat steps 1 - 2 for each PAYNUM(i) variable.
Can someone help me progress in the right direction? If the above is confusing basically just the process for:
1. Storing variables in a range of cells on one sheet
2. Comparing variables in a range of cells on another sheet and either:
- If variable is matched go to next variable
- If variable is not matched (i.e. runs through the list into a blank cell) input that variable and go to next variable.
Any help will be greatly appreciated!
Coeus.
Bookmarks