Good morning everyone. I am building a project finance model which requires me to break some of the circularities by using copy/paste circular tables.
Now, I'm using the code where one of the cells in the "Fin Statements" tab is required to go to True before the loop should cuut off. But it's not working for some reason. I need your help fixing the code.
Sub Cir_Reinvestment()
'
' Cir_Reinvestment Macro
' For Scenario 1
Dim I As Long
Dim Rngcashchk As Boolean
'Cell where sheet checks for True/False statement
Rngcashchk = Sheets("Fin Statements").Cells(105, E)
'Copy Paste Actions start here
Sheets("Inputs").Select
Range("Macro.Cashflow.Closing.Copy").Select
Range(Selection, Selection.End(xlToRight)).Select
Selection.Copy
Range("Macro.Cashflow.Closing.Paste").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Sheets("Inputs").Select
Range("MacroRS.Invested.Fund.Copy").Select
Range(Selection, Selection.End(xlToRight)).Select
Application.CutCopyMode = False
Selection.Copy
Range("MacroRS.Invested.Fund.Paste").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Range("MacroRS.REIncome.Copy").Select
Range(Selection, Selection.End(xlToRight)).Select
Application.CutCopyMode = False
Selection.Copy
Range("MacroRS.REIncome.Paste").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Range("Macro.Cashflow.Closing.Copy").Select
Range(Selection, Selection.End(xlToRight)).Select
Selection.Copy
Range("Macro.Cashflow.Closing.Paste").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
'Loop should end once Cell is True
Loop Until Rngcashchk = True
End Sub