hello,
so i've got a spreadsheet that i'm working on that i'm doing some automation for and i'm not sure where to go from here. i don't know too much about coding, but pick up a little here and there.
so what i have is 2 spreadsheets that i'm using to compare data and copy and paste the information found. there is a list of data in column E that i am copying and pasting into the "timestamp log" which has a macros that search for a variable in that workbook, if the variable is found the cell is copied. then "advisor info1" is activated and pasted in column H.
now i'm trying to avoid having to write the below coding for each and every cell in column E that has data to be found. is there a way to loop the process until a blank cell is found? like to have it search cell e2, e3, e4, e5... etc until it hits a cell with nothing in it? sometimes i have over 1000 cells in column E that i need to search through and trying to copy and paste out the below information 1000 times is very tedius and a waste. anyone have any ideas?
i'm not sure if i explained it clearly enough, let me know if you need a little more clarification
i've included what i'm trying to avoid, which is having to copy and paste the set of code for each cell in column E. the line break is where the code repeats for the next cellRange("e2").Select
Selection.Copy
Application.Workbooks.Open ("O:\~trading\~Reorg\Offer Tools\Files Needed\timestamp log.xls")
Windows("timestamp log.xls").Activate
Range("F1").Select
ActiveSheet.Paste
Application.Run "'timestamp log.xls'!findcell"
Windows("Advisor Info1").Activate
Range("h2").Select
ActiveSheet.Paste
Range("e2").Select
Selection.Copy
Windows("timestamp log.xls").Activate
Range("F1").Select
ActiveSheet.Paste
Application.Run "'timestamp log.xls'!findcell2"
Windows("Advisor Info1").Activate
Range("i2").Select
ActiveSheet.Paste
Range("e3").Select
Selection.Copy
Windows("timestamp log.xls").Activate
Range("F1").Select
ActiveSheet.Paste
Application.Run "'timestamp log.xls'!findcell"
Windows("Advisor Info1").Activate
Range("h3").Select
ActiveSheet.Paste
Range("e3").Select
Selection.Copy
Windows("timestamp log.xls").Activate
Range("F1").Select
ActiveSheet.Paste
Application.Run "'timestamp log.xls'!findcell2"
Windows("Advisor Info1").Activate
Range("i3").Select
ActiveSheet.Paste
Bookmarks