Ark68
Well-known Member
- Joined
- Mar 23, 2004
- Messages
- 4,564
- Office Version
- 365
- 2016
- Platform
- Windows
Is anyone able to provide me a set of educated eyes to reveal the problem in the highlighted code below that is chirping an "Application-deined or object-defined error".
pnum = R2685 and is found in closed workbook permit_data.xlsx, worksheet Permit data, cell A10. The value in F10 is "Hockey"
Rich (BB code):
With ws_thold 'the list
'.Cells(d_th, 28) = posnum
.Cells(d_th, 29) = x
.Cells(d_th, 30) = pnum
.Cells(d_ht, 31) = "=VLookup(""" & pnum & """,'D:\WSOP 2020\[permit_data.xlsx]Permit_Data'!A:S,5,false)" 'function(5)
.Cells(d_ht, 32) = "=VLookup(""" & pnum & """,'D:\WSOP 2020\[permit_data.xlsx]Permit_Data'!A:S,12,false)" 'base dist(12)
.Cells(d_ht, 33) = "=VLookup(""" & pnum & """,'D:\WSOP 2020\[permit_data.xlsx]Permit_Data'!A:S,19,false)" 'pitch dist(19)
.Cells(d_th, 26) = bkg_st
.Cells(d_th, 27) = bkg_et
d_th = d_th + 1
End With
pnum = R2685 and is found in closed workbook permit_data.xlsx, worksheet Permit data, cell A10. The value in F10 is "Hockey"