Loop
Loop Until check = True
Sheets("MRIUPLOAD").Select
Range("I2").Select
ActiveCell.FormulaR1C1 = "=IF(RC[-4]<""MM40000000"",RC[-1]*-1,RC[-1])"
Selection.Copy
ActiveCell.Offset(0, -3).Range("A1").Select
Selection.End(xlDown).Select
ActiveCell.Offset(0, 3).Range("A1").Select
Range(Selection, Selection.End(xlUp)).Select
ActiveSheet.Paste
Calculate
Range("I2").Select
Range(Selection, Selection.End(xlDown)).Select
Selection.Copy
ActiveCell.Offset(0, -1).Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
ActiveCell.Offset(0, 1).Select
Range(Selection, Selection.End(xlDown)).Select
Selection.ClearContents
With Application
.Calculation = xlAutomatic
.MaxChange = 0.001
.CalculateBeforeSave = False
End With
LineEnd:
End Sub
Sub XLCOPYLINE()
'
' XLCOPYLINE Macro
' Macro recorded 7/31/2007 by Doug Speckmann
'
'
Range(ActiveCell.Offset(0, 1), ActiveCell.Offset(0, 15)).Select
Selection.Copy
Sheets("MRIUPLOAD").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
ActiveCell.Range("A1:A1").Select
Selection.Copy
ActiveCell.Offset(0, -4).Select
ActiveCell.Range("A1:A12").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
ActiveCell.Offset(0, 5).Select
Selection.Copy
ActiveCell.Offset(0, -6).Select
ActiveCell.Range("A1:A12").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
ActiveCell.Offset(0, 8).Select
Range(Selection, ActiveCell.Offset(0, 12)).Select
Selection.Copy
ActiveCell.Offset(0, -4).Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=True
ActiveCell.Offset(0, -6).Select
ActiveCell.FormulaR1C1 = "=CONCATENATE(LEFT('Summary Budget'!R2C1,4),""01"")"
ActiveCell.Offset(1, 0).Select
ActiveCell.FormulaR1C1 = "=CONCATENATE(LEFT('Summary Budget'!R2C1,4),""02"")"
ActiveCell.Offset(1, 0).Select
ActiveCell.FormulaR1C1 = "=CONCATENATE(LEFT('Summary Budget'!R2C1,4),""03"")"
ActiveCell.Offset(1, 0).Select
ActiveCell.FormulaR1C1 = "=CONCATENATE(LEFT('Summary Budget'!R2C1,4),""04"")"
ActiveCell.Offset(1, 0).Select
ActiveCell.FormulaR1C1 = "=CONCATENATE(LEFT('Summary Budget'!R2C1,4),""05"")"
ActiveCell.Offset(1, 0).Select
ActiveCell.FormulaR1C1 = "=CONCATENATE(LEFT('Summary Budget'!R2C1,4),""06"")"
ActiveCell.Offset(1, 0).Select
ActiveCell.FormulaR1C1 = "=CONCATENATE(LEFT('Summary Budget'!R2C1,4),""07"")"
ActiveCell.Offset(1, 0).Select
ActiveCell.FormulaR1C1 = "=CONCATENATE(LEFT('Summary Budget'!R2C1,4),""08"")"
ActiveCell.Offset(1, 0).Select
ActiveCell.FormulaR1C1 = "=CONCATENATE(LEFT('Summary Budget'!R2C1,4),""09"")"
ActiveCell.Offset(1, 0).Select
ActiveCell.FormulaR1C1 = "=CONCATENATE(LEFT('Summary Budget'!R2C1,4),""10"")"
ActiveCell.Offset(1, 0).Select
ActiveCell.FormulaR1C1 = "=CONCATENATE(LEFT('Summary Budget'!R2C1,4),""11"")"
ActiveCell.Offset(1, 0).Select
ActiveCell.FormulaR1C1 = "=CONCATENATE(LEFT('Summary Budget'!R2C1,4),""12"")"
ActiveCell.Offset(-11, 1).Select
ActiveCell.FormulaR1C1 = "=LEFT('MRI Dump-ACTUAL'!R2C1,6)"
Selection.Copy
ActiveCell.Range("A1:A12").Select
ActiveSheet.Paste
ActiveCell.Offset(0, 3).Select
ActiveCell.FormulaR1C1 = "A"
Selection.Copy
ActiveCell.Range("A1:A12").Select
ActiveSheet.Paste
ActiveCell.Offset(0, 3).Select
Range(Selection, ActiveCell.Offset(11, 16)).Select
Selection.ClearContents
ActiveCell.Offset(12, 0).Select
End Sub
Bookmarks