您的代码即将完成。
-
添加代码行以更新上的单元格A26
Second Tab
保存PDF之前
-
注:我不确定
mt.Range("H25")
是循环的正确起始值。
'Master Tab save pdf according to new property address'
For i = mt.Range("H25") To row_count
Filename = mt.Cells(i, 5).Text
'Save PDF according to specific cash offer for that property'
' SubTo_CashOffer = mt.Cells(i, 4).Text
st.Range("A26").Value = mt.Cells(i, 4).Text ' ***
'Then Save the PDF with associated values'
On Error Resume Next
pdf_range.ExportAsFixedFormat xlTypePDF, LOIFilePath & Filename & ".pdf"
On Error GoTo 0
Next i