Hi Cindy,
Thank you for your time. I got the update code to work on a test run, and I am working on the "getvalue" code provided in the link above. I am having success with the getvalue code, but am wondering if there is a way to make it go to the next file and next line on my summary table automatically rather than repeating the code and changing the file name & Line number.
The macro is pulling 14 cells into the summary table and I am doing this with 74 files. This is what it looks like for the first three properties:
Sub TestGetValue2()
p = "G:\CVC\Real Estate\EGD Properties\Valuation Workbooks"
f = "1240-1109_Montee_Masson,Mascouche,QC.xls"
s = "Exec Summ"
Application.ScreenUpdating = False
For r = 39 To 39
For c = 3 To 3
a = Cells(r, c).Address
Cells(5, 20) = GetValue(p, f, s, a)
Next c
Next r
Application.ScreenUpdating = True
p = "G:\CVC\Real Estate\EGD Properties\Valuation Workbooks"
f = "1240-1109_Montee_Masson,Mascouche,QC.xls"
s = "Exec Summ"
Application.ScreenUpdating = False
For r = 41 To 41
For c = 3 To 3
a = Cells(r, c).Address
Cells(5, 21) = GetValue(p, f, s, a)
Next c
Next r
Application.ScreenUpdating = True
p = "G:\CVC\Real Estate\EGD Properties\Valuation Workbooks"
f = "1240-1109_Montee_Masson,Mascouche,QC.xls"
s = "Exec Summ"
Application.ScreenUpdating = False
For r = 43 To 43
For c = 3 To 3
a = Cells(r, c).Address
Cells(5, 22) = GetValue(p, f, s, a)
Next c
Next r
Application.ScreenUpdating = True
p = "G:\CVC\Real Estate\EGD Properties\Valuation Workbooks"
f = "1240-1109_Montee_Masson,Mascouche,QC.xls"
s = "Exec Summ"
Application.ScreenUpdating = False
For r = 32 To 32
For c = 3 To 3
a = Cells(r, c).Address
Cells(5, 15) = GetValue(p, f, s, a)
Next c
Next r
Application.ScreenUpdating = True
p = "G:\CVC\Real Estate\EGD Properties\Valuation Workbooks"
f = "1240-1109_Montee_Masson,Mascouche,QC.xls"
s = "Exec Summ"
Application.ScreenUpdating = False
For r = 45 To 45
For c = 3 To 3
a = Cells(r, c).Address
Cells(5, 23) = GetValue(p, f, s, a)
Next c
Next r
Application.ScreenUpdating = True
p = "G:\CVC\Real Estate\EGD Properties\Valuation Workbooks"
f = "1240-1109_Montee_Masson,Mascouche,QC.xls"
s = "RCNLD-Bldgs"
Application.ScreenUpdating = False
For r = 35 To 35
For c = 9 To 9
a = Cells(r, c).Address
Cells(5, 12) = GetValue(p, f, s, a)
Next c
Next r
Application.ScreenUpdating = True
p = "G:\CVC\Real Estate\EGD Properties\Valuation Workbooks"
f = "1240-1109_Montee_Masson,Mascouche,QC.xls"
s = "RCNLD-SI"
Application.ScreenUpdating = False
For r = 16 To 16
For c = 12 To 12
a = Cells(r, c).Address
Cells(5, 13) = GetValue(p, f, s, a)
Next c
Next r
Application.ScreenUpdating = True
p = "G:\CVC\Real Estate\EGD Properties\Valuation Workbooks"
f = "1240-1109_Montee_Masson,Mascouche,QC.xls"
s = "Exec Summ"
Application.ScreenUpdating = False
For r = 35 To 35
For c = 3 To 3
a = Cells(r, c).Address
Cells(5, 11) = GetValue(p, f, s, a)
Next c
Next r
Application.ScreenUpdating = True
p = "G:\CVC\Real Estate\EGD Properties\Valuation Workbooks"
f = "1240-1109_Montee_Masson,Mascouche,QC.xls"
s = "Exec Summ"
Application.ScreenUpdating = False
For r = 36 To 36
For c = 3 To 3
a = Cells(r, c).Address
Cells(5, 17) = GetValue(p, f, s, a)
Next c
Next r
Application.ScreenUpdating = True
p = "G:\CVC\Real Estate\EGD Properties\Valuation Workbooks"
f = "1240-1109_Montee_Masson,Mascouche,QC.xls"
s = "Exec Summ"
Application.ScreenUpdating = False
For r = 37 To 37
For c = 3 To 3
a = Cells(r, c).Address
Cells(5, 18) = GetValue(p, f, s, a)
Next c
Next r
Application.ScreenUpdating = True
p = "G:\CVC\Real Estate\EGD Properties\Valuation Workbooks"
f = "1330-3150 Boul Cartier, Laval,QC.xls"
s = "Exec Summ"
Application.ScreenUpdating = False
For r = 38 To 38
For c = 3 To 3
a = Cells(r, c).Address
Cells(5, 19) = GetValue(p, f, s, a)
Next c
Next r
Application.ScreenUpdating = True
p = "G:\CVC\Real Estate\EGD Properties\Valuation Workbooks"
f = "1330-3150 Boul Cartier, Laval,QC.xls"
s = "Rcnld Equipment"
Application.ScreenUpdating = False
For r = 79 To 79
For c = 13 To 13
a = Cells(r, c).Address
Cells(5, 14) = GetValue(p, f, s, a)
Next c
Next r
Application.ScreenUpdating = True
p = "G:\CVC\Real Estate\EGD Properties\Valuation Workbooks"
f = "1330-3150 Boul Cartier, Laval,QC.xls"
s = "Market Rent Analysis"
Application.ScreenUpdating = False
For r = 15 To 15
For c = 6 To 6
a = Cells(r, c).Address
Cells(5, 25) = GetValue(p, f, s, a)
Next c
Next r
Application.ScreenUpdating = True
p = "G:\CVC\Real Estate\EGD Properties\Valuation Workbooks"
f = "1330-3150 Boul Cartier, Laval,QC.xls"
s = "Direct Cap Summary"
Application.ScreenUpdating = False
For r = 5 To 5
For c = 5 To 5
a = Cells(r, c).Address
Cells(5, 27) = GetValue(p, f, s, a)
Next c
Next r
Application.ScreenUpdating = True
p = "G:\CVC\Real Estate\EGD Properties\Valuation Workbooks"
f = "1330-3150_Boul_Cartier,Laval,QC.xls"
s = "Exec Summ"
Application.ScreenUpdating = False
For r = 39 To 39
For c = 3 To 3
a = Cells(r, c).Address
Cells(6, 20) = GetValue(p, f, s, a)
Next c
Next r
Application.ScreenUpdating = True
p = "G:\CVC\Real Estate\EGD Properties\Valuation Workbooks"
f = "1330-3150_Boul_Cartier,Laval,QC.xls"
s = "Exec Summ"
Application.ScreenUpdating = False
For r = 41 To 41
For c = 3 To 3
a = Cells(r, c).Address
Cells(6, 21) = GetValue(p, f, s, a)
Next c
Next r
Application.ScreenUpdating = True
p = "G:\CVC\Real Estate\EGD Properties\Valuation Workbooks"
f = "1330-3150_Boul_Cartier,Laval,QC.xls"
s = "Exec Summ"
Application.ScreenUpdating = False
For r = 43 To 43
For c = 3 To 3
a = Cells(r, c).Address
Cells(6, 22) = GetValue(p, f, s, a)
Next c
Next r
Application.ScreenUpdating = True
p = "G:\CVC\Real Estate\EGD Properties\Valuation Workbooks"
f = "1330-3150_Boul_Cartier,Laval,QC.xls"
s = "Exec Summ"
Application.ScreenUpdating = False
For r = 32 To 32
For c = 3 To 3
a = Cells(r, c).Address
Cells(6, 15) = GetValue(p, f, s, a)
Next c
Next r
Application.ScreenUpdating = True
p = "G:\CVC\Real Estate\EGD Properties\Valuation Workbooks"
f = "1330-3150_Boul_Cartier,Laval,QC.xls"
s = "Exec Summ"
Application.ScreenUpdating = False
For r = 45 To 45
For c = 3 To 3
a = Cells(r, c).Address
Cells(6, 23) = GetValue(p, f, s, a)
Next c
Next r
Application.ScreenUpdating = True
p = "G:\CVC\Real Estate\EGD Properties\Valuation Workbooks"
f = "1330-3150_Boul_Cartier,Laval,QC.xls"
s = "RCNLD-Bldgs"
Application.ScreenUpdating = False
For r = 35 To 35
For c = 9 To 9
a = Cells(r, c).Address
Cells(6, 12) = GetValue(p, f, s, a)
Next c
Next r
Application.ScreenUpdating = True
p = "G:\CVC\Real Estate\EGD Properties\Valuation Workbooks"
f = "1330-3150_Boul_Cartier,Laval,QC.xls"
s = "RCNLD-SI"
Application.ScreenUpdating = False
For r = 16 To 16
For c = 12 To 12
a = Cells(r, c).Address
Cells(6, 13) = GetValue(p, f, s, a)
Next c
Next r
Application.ScreenUpdating = True
p = "G:\CVC\Real Estate\EGD Properties\Valuation Workbooks"
f = "1330-3150_Boul_Cartier,Laval,QC.xls"
s = "Exec Summ"
Application.ScreenUpdating = False
For r = 35 To 35
For c = 3 To 3
a = Cells(r, c).Address
Cells(6, 11) = GetValue(p, f, s, a)
Next c
Next r
Application.ScreenUpdating = True
p = "G:\CVC\Real Estate\EGD Properties\Valuation Workbooks"
f = "1330-3150_Boul_Cartier,Laval,QC.xls"
s = "Exec Summ"
Application.ScreenUpdating = False
For r = 36 To 36
For c = 3 To 3
a = Cells(r, c).Address
Cells(6, 17) = GetValue(p, f, s, a)
Next c
Next r
Application.ScreenUpdating = True
p = "G:\CVC\Real Estate\EGD Properties\Valuation Workbooks"
f = "1330-3150_Boul_Cartier,Laval,QC.xls"
s = "Exec Summ"
Application.ScreenUpdating = False
For r = 37 To 37
For c = 3 To 3
a = Cells(r, c).Address
Cells(6, 18) = GetValue(p, f, s, a)
Next c
Next r
Application.ScreenUpdating = True
p = "G:\CVC\Real Estate\EGD Properties\Valuation Workbooks"
f = "1330-3150_Boul_Cartier,Laval,QC.xls"
s = "Exec Summ"
Application.ScreenUpdating = False
For r = 38 To 38
For c = 3 To 3
a = Cells(r, c).Address
Cells(6, 19) = GetValue(p, f, s, a)
Next c
Next r
Application.ScreenUpdating = True
p = "G:\CVC\Real Estate\EGD Properties\Valuation Workbooks"
f = "1330-3150_Boul_Cartier,Laval,QC.xls"
s = "Rcnld Equipment"
Application.ScreenUpdating = False
For r = 79 To 79
For c = 13 To 13
a = Cells(r, c).Address
Cells(6, 14) = GetValue(p, f, s, a)
Next c
Next r
Application.ScreenUpdating = True
p = "G:\CVC\Real Estate\EGD Properties\Valuation Workbooks"
f = "1330-3150_Boul_Cartier,Laval,QC.xls"
s = "Market Rent Analysis"
Application.ScreenUpdating = False
For r = 15 To 15
For c = 6 To 6
a = Cells(r, c).Address
Cells(6, 25) = GetValue(p, f, s, a)
Next c
Next r
Application.ScreenUpdating = True
p = "G:\CVC\Real Estate\EGD Properties\Valuation Workbooks"
f = "1330-3150_Boul_Cartier,Laval,QC.xls"
s = "Direct Cap Summary"
Application.ScreenUpdating = False
For r = 5 To 5
For c = 5 To 5
a = Cells(r, c).Address
Cells(6, 27) = GetValue(p, f, s, a)
Next c
Next r
Application.ScreenUpdating = True
p = "G:\CVC\Real Estate\EGD Properties\Valuation Workbooks"
f = "1340-260_Boul_Concorde,Laval,QC.xls"
s = "Exec Summ"
Application.ScreenUpdating = False
For r = 39 To 39
For c = 3 To 3
a = Cells(r, c).Address
Cells(7, 20) = GetValue(p, f, s, a)
Next c
Next r
Application.ScreenUpdating = True
p = "G:\CVC\Real Estate\EGD Properties\Valuation Workbooks"
f = "1340-260_Boul_Concorde,Laval,QC.xls"
s = "Exec Summ"
Application.ScreenUpdating = False
For r = 41 To 41
For c = 3 To 3
a = Cells(r, c).Address
Cells(7, 21) = GetValue(p, f, s, a)
Next c
Next r
Application.ScreenUpdating = True
p = "G:\CVC\Real Estate\EGD Properties\Valuation Workbooks"
f = "1340-260_Boul_Concorde,Laval,QC.xls"
s = "Exec Summ"
Application.ScreenUpdating = False
For r = 43 To 43
For c = 3 To 3
a = Cells(r, c).Address
Cells(7, 22) = GetValue(p, f, s, a)
Next c
Next r
Application.ScreenUpdating = True
p = "G:\CVC\Real Estate\EGD Properties\Valuation Workbooks"
f = "1340-260_Boul_Concorde,Laval,QC.xls"
s = "Exec Summ"
Application.ScreenUpdating = False
For r = 32 To 32
For c = 3 To 3
a = Cells(r, c).Address
Cells(7, 15) = GetValue(p, f, s, a)
Next c
Next r
Application.ScreenUpdating = True
p = "G:\CVC\Real Estate\EGD Properties\Valuation Workbooks"
f = "1340-260_Boul_Concorde,Laval,QC.xls"
s = "Exec Summ"
Application.ScreenUpdating = False
For r = 45 To 45
For c = 3 To 3
a = Cells(r, c).Address
Cells(7, 23) = GetValue(p, f, s, a)
Next c
Next r
Application.ScreenUpdating = True
p = "G:\CVC\Real Estate\Canada\EGD Properties\Valuation Workbooks"
f = "1340-260_Boul_Concorde,Laval,QC.xls"
s = "RCNLD-Bldgs"
Application.ScreenUpdating = False
For r = 35 To 35
For c = 9 To 9
a = Cells(r, c).Address
Cells(7, 12) = GetValue(p, f, s, a)
Next c
Next r
Application.ScreenUpdating = True
p = "G:\CVC\Real Estate\EGD Properties\Valuation Workbooks"
f = "1340-260_Boul_Concorde,Laval,QC.xls"
s = "RCNLD-SI"
Application.ScreenUpdating = False
For r = 16 To 16
For c = 12 To 12
a = Cells(r, c).Address
Cells(7, 13) = GetValue(p, f, s, a)
Next c
Next r
Application.ScreenUpdating = True
p = "G:\CVC\Real Estate\EGD Properties\Valuation Workbooks"
f = "1340-260_Boul_Concorde,Laval,QC.xls"
s = "Exec Summ"
Application.ScreenUpdating = False
For r = 35 To 35
For c = 3 To 3
a = Cells(r, c).Address
Cells(7, 11) = GetValue(p, f, s, a)
Next c
Next r
Application.ScreenUpdating = True
p = "G:\CVC\Real Estate\EGD Properties\Valuation Workbooks"
f = "1340-260_Boul_Concorde,Laval,QC.xls"
s = "Exec Summ"
Application.ScreenUpdating = False
For r = 36 To 36
For c = 3 To 3
a = Cells(r, c).Address
Cells(7, 17) = GetValue(p, f, s, a)
Next c
Next r
Application.ScreenUpdating = True
p = "G:\CVC\Real Estate\EGD Properties\Valuation Workbooks"
f = "1340-260_Boul_Concorde,Laval,QC.xls"
s = "Exec Summ"
Application.ScreenUpdating = False
For r = 37 To 37
For c = 3 To 3
a = Cells(r, c).Address
Cells(7, 18) = GetValue(p, f, s, a)
Next c
Next r
Application.ScreenUpdating = True
p = "G:\CVC\Real Estate\EGD Properties\Valuation Workbooks"
f = "1340-260_Boul_Concorde,Laval,QC.xls"
s = "Exec Summ"
Application.ScreenUpdating = False
For r = 38 To 38
For c = 3 To 3
a = Cells(r, c).Address
Cells(7, 19) = GetValue(p, f, s, a)
Next c
Next r
Application.ScreenUpdating = True
p = "G:\CVC\Real Estate\EGD Properties\Valuation Workbooks"
f = "1340-260_Boul_Concorde,Laval,QC.xls"
s = "Rcnld Equipment"
Application.ScreenUpdating = False
For r = 79 To 79
For c = 13 To 13
a = Cells(r, c).Address
Cells(7, 14) = GetValue(p, f, s, a)
Next c
Next r
Application.ScreenUpdating = True
p = "G:\CVC\Real Estate\EGD Properties\Valuation Workbooks"
f = "1340-260_Boul_Concorde,Laval,QC.xls"
s = "Market Rent Analysis"
Application.ScreenUpdating = False
For r = 15 To 15
For c = 6 To 6
a = Cells(r, c).Address
Cells(7, 25) = GetValue(p, f, s, a)
Next c
Next r
Application.ScreenUpdating = True
p = "G:\CVC\Real Estate\EGD Properties\Valuation Workbooks"
f = "1340-260_Boul_Concorde,Laval,QC.xls"
s = "Direct Cap Summary"
Application.ScreenUpdating = False
For r = 5 To 5
For c = 5 To 5
a = Cells(r, c).Address
Cells(7, 27) = GetValue(p, f, s, a)
Next c
Next r
Application.ScreenUpdating = True
End Sub