yichuansancun
Board Regular
- Joined
- Feb 7, 2011
- Messages
- 123
Hello -
Can someone help me to interpret the following codes? Someone added this to my existing excel file in which I have already some codes in, but ever since the following codes were added, I am getting running time error by hiding row J to the very last row. Now sure if that has something to do with these codes:
Sub Macro1()
'
' Macro1 Macro
'
'
Range("G24").Select
Sheets("Local Plus Report").Select
ActiveWindow.LargeScroll Down:=-1
Range("G24").Select
ActiveCell.FormulaR1C1 = "=IF(R22C7=0,0,R[-20]C[7]-R[-20]C[8])"
Range("O3").Select
ActiveCell.FormulaR1C1 = "100000"
Range("O4").Select
Sheets("Local Plus Report").Select
Range("G25").Select
ActiveCell.FormulaR1C1 = "=IF(R22C7=0,0,R[-20]C[7]-R[-20]C[8])"
Range("G26").Select
ActiveCell.FormulaR1C1 = "=IF(R22C7=0,0,R[-20]C[7]-R[-20]C[8])"
Range("K7").Select
ActiveWorkbook.Save
Sheets("Home housing").Select
Sheets("United States local").Visible = True
Sheets("Local Plus Report").Select
Range("G26").Select
ActiveWorkbook.Save
End Sub
thanks,
Perri
Can someone help me to interpret the following codes? Someone added this to my existing excel file in which I have already some codes in, but ever since the following codes were added, I am getting running time error by hiding row J to the very last row. Now sure if that has something to do with these codes:
Sub Macro1()
'
' Macro1 Macro
'
'
Range("G24").Select
Sheets("Local Plus Report").Select
ActiveWindow.LargeScroll Down:=-1
Range("G24").Select
ActiveCell.FormulaR1C1 = "=IF(R22C7=0,0,R[-20]C[7]-R[-20]C[8])"
Range("O3").Select
ActiveCell.FormulaR1C1 = "100000"
Range("O4").Select
Sheets("Local Plus Report").Select
Range("G25").Select
ActiveCell.FormulaR1C1 = "=IF(R22C7=0,0,R[-20]C[7]-R[-20]C[8])"
Range("G26").Select
ActiveCell.FormulaR1C1 = "=IF(R22C7=0,0,R[-20]C[7]-R[-20]C[8])"
Range("K7").Select
ActiveWorkbook.Save
Sheets("Home housing").Select
Sheets("United States local").Visible = True
Sheets("Local Plus Report").Select
Range("G26").Select
ActiveWorkbook.Save
End Sub
thanks,
Perri