McM_
New Member
- Joined
- Oct 23, 2023
- Messages
- 23
- Office Version
- 365
- Platform
- Windows
Hello
I know this is a beginner problem, but is there anyone who can help me with the information below?
How to activate VBA that launches a formula from the Sheet, and that formula to run C3:C100, without the need to launch with F5?
In the end, I managed to display the date under certain conditions, without needing to activate it with F5.
I can't find how to activate the formulas without F5.
Please excuse the technical terms.
Thank you !
I know this is a beginner problem, but is there anyone who can help me with the information below?
How to activate VBA that launches a formula from the Sheet, and that formula to run C3:C100, without the need to launch with F5?
In the end, I managed to display the date under certain conditions, without needing to activate it with F5.
I can't find how to activate the formulas without F5.
Please excuse the technical terms.
Thank you !
VBA Code:
Sub Macrocomandã5() Range("C2:C8").Select ActiveCell.FormulaR1C1 = "=IF(RC[-2]>0,(RC[-2]+RC[-1]),"""")" Range("C2:C8").Select Range("C3").Activate End SubPrivate Sub worksheet_Change(ByVal Target As Range)Dim ws As WorksheetIf Target.Column = 8 ThenRange("I" & Target.Row) = NowEnd IfIf Target.Column = 14 ThenRange("M2:M" & Target.Row) = Range("L2")End IfEnd Sub