Hi Again... good nights..
I try to adjust this formula to somthing that works... i have something like this..
Range("D18").Select
ActiveCell.FormulaR1C1 = "=AVERAGE('[Calculadora Tecnica JULIO.xlsm]IN Y CS'!R18C4:R18C37)"
Range("D18").Copy
Range("D18:AL18").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
The Bold section have a formula that refers another book... how i can do dynamic this name i try something like this but doesen't work...
Dim Mesanterior As String
Dim Miarchivoanterior As String
Mesanterior = UCase(MonthName(Month(Date) - 1))
Miarchivoanterior = "F:\Calculadora Tecnica\Calculadora Tecnica" & " " & Mesanterior & ".xlsm"
Range("D18").Select
ActiveCell.FormulaR1C1 = "=AVERAGE('[how insert the variant miarchivoanterior in this place¡?]IN Y CS'!R9C4:R9C37)"
Greetings!!
I try to adjust this formula to somthing that works... i have something like this..
Range("D18").Select
ActiveCell.FormulaR1C1 = "=AVERAGE('[Calculadora Tecnica JULIO.xlsm]IN Y CS'!R18C4:R18C37)"
Range("D18").Copy
Range("D18:AL18").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
The Bold section have a formula that refers another book... how i can do dynamic this name i try something like this but doesen't work...
Dim Mesanterior As String
Dim Miarchivoanterior As String
Mesanterior = UCase(MonthName(Month(Date) - 1))
Miarchivoanterior = "F:\Calculadora Tecnica\Calculadora Tecnica" & " " & Mesanterior & ".xlsm"
Range("D18").Select
ActiveCell.FormulaR1C1 = "=AVERAGE('[how insert the variant miarchivoanterior in this place¡?]IN Y CS'!R9C4:R9C37)"
Greetings!!