my apologies in advance - I am relatively novice with VBA
I have a report generated daily, with several sheets (Let's say Sheet1, Sheet2, Sheet3). These sheets have tables where I track notes for each order line, and I would like to vlookup the notes from day to day.
The issue I am facing: I need to be able to repeat this for Sheet1, Sheet2, and Sheet3, pulling from the previous day's respective Sheet1, 2, 3, and repeat this day by day.
Is there a way for the vlookup to recognize my active sheet name, e.g. Sheet3, and look back at the prior day's workbook and pull from that Sheet3?
Is this something that can be done?
Thank you for any help
Selection.Insert Shift:=xlToRight, CopyOrigin:=xlFormatFromLeftOrAbove Range("D2").Select ActiveCell.FormulaR1C1 = _ "=VLOOKUP([@Column1],'[PLS DMD 022416.xlsm]Sheet3'!C3:C4,2,FALSE)" Range("D3").Select
This is what I am presently working with but this would only apply to pulling from Sheet3 onto the new 022516 Sheet3. This would also not allow me to repeat this the next day from (PLS DMD 022616) as it would not reference 022516, but still 022416 – tyler p