I have the following code, which was working fine until now. The problems which I am facing is due to the change in condition. Now I'm required to add a column between D & E due to which my formula (Fm1 should change from "D7-E7" to "D7-F7").
Need you help to automate this, the code should hold true no matter how many columns are added between D & E.
Thanks in advance for your help!!
Need you help to automate this, the code should hold true no matter how many columns are added between D & E.
Thanks in advance for your help!!
Code:
Dim Fm1 As String
Fm1 = "D7-E7"
ActiveSheet.Rows(6).Find("Forecast").Select
ActiveCell.Offset(1, 0).Formula = "=" & Fm1
ActiveCell.Offset(1, 0).Copy
Range(ActiveCell.Offset(1, 0), ActiveCell.Offset(7, 0)).PasteSpecial xlPasteFormulas