CaptainCsaba
Board Regular
- Joined
- Dec 8, 2017
- Messages
- 78
Code:
Range("F26").Select
ActiveCell.FormulaR1C1 = _
"=VLOOKUP(RC[-1],'F:\infestor profiles\UK Holdings BP\[Things things things.xlsx]Sheet1'!C3:C5,2,FALSE)"
Range("G26").Select
ActiveCell.FormulaR1C1 = _
"=VLOOKUP(RC[-2],F:\infestor profiles\UK Holdings BP\[Things things things.xlsx]Sheet1'!C3:C5,3,FALSE)"
Range("F26").Select
Selection.AutoFill Range(ActiveCell, ActiveCell.Offset(0, -1).End(xlDown).Offset(0, 1))
Range("G26").Select
Selection.AutoFill Range(ActiveCell, ActiveCell.Offset(0, -1).End(xlDown).Offset(0, 1))
I have the following code. Whenever I run it it asks 6 separate times for me to find the "Things things things" workbook. For some reason it does not seem to find and I can'T figure out where the problem is, since this is the path. It might be because it is on a separate server but still the path should be fine. Where is the problem?
Last edited: