epactheactor
New Member
- Joined
- Sep 9, 2015
- Messages
- 38
Hello everyone.
I'm still a newbie through I am currently in school to try and figure out VBA.
I have a unique issue which I'm sure has an answer that I'm not seeing. I know it can be solved using vLookup or a loop to go through the range then using offset, but I'm having trouble starting it.
I'm trying to create a macro that will go though all numbers in a single column in one spreadsheet ("New" spreadsheet, Column A) then search all the numbers in a separate spreadsheet ("Base" Spreadsheet, Column C) for the closest number. If one is found, it would put a number in a different column in the "Base" Spreadsheet.
Reason for the macro and not just a formula is that the columns will sometimes be different, so I would have to put a prompt saying which column to look at each time the macro is used.
Any help to point me in the right direction would be greatly appreciated.
Thank you.
I'm still a newbie through I am currently in school to try and figure out VBA.
I have a unique issue which I'm sure has an answer that I'm not seeing. I know it can be solved using vLookup or a loop to go through the range then using offset, but I'm having trouble starting it.
I'm trying to create a macro that will go though all numbers in a single column in one spreadsheet ("New" spreadsheet, Column A) then search all the numbers in a separate spreadsheet ("Base" Spreadsheet, Column C) for the closest number. If one is found, it would put a number in a different column in the "Base" Spreadsheet.
Reason for the macro and not just a formula is that the columns will sometimes be different, so I would have to put a prompt saying which column to look at each time the macro is used.
Any help to point me in the right direction would be greatly appreciated.
Thank you.