Every day i need to link today's opening balance to previous day's closing balance ,i have recorded a macro like this
Range("D5").Select
ActiveCell.FormulaR1C1 = "='27.07.18'!RC[6]"
Range("D5").Select
Selection.AutoFill Destination:=Range("D5:E5"), Type:=xlFillDefault
Range("D5:E5").Select
Selection.AutoFill Destination:=Range("D5:E86"), Type:=xlFillDefault
Range("D5:E86").Select
Range("D82").Select
This does the work but every day i have to chance a file name to today's date (as date is my sheet name )
Can i Use a Variable Insted Of Sheet name in FormulaR1C1