I have the following problem. I want to fill in the formula (=""
) in different cells, it is necessary to fill in this kind of formula instead of leaving the cells empty due to processing by another file. However, if I loop over the different cells, in the following way:
For Col = 10 To 99
For Row = 10 To 11
If Col Mod 3 <> 0 Then
Worksheets(name_sheet).Range("A1").Offset(Row - 1, Col - 1).Formula = "="""
Worksheets(name_sheet).Range("A1").Offset(Row - 1, Col - 1).Locked = True
Worksheets(name_sheet).Range("A1").Offset(Row - 1, Col - 1).Interior.ThemeColor = xlThemeColorLight2
Worksheets(name_sheet).Range("A1").Offset(Row - 1, Col - 1).Interior.TintAndShade = 0.799981688894314
End If
Next Row
Next Col
Then I receive an error that the formula can not be assigned. Nevertheless I do not see what does the error produces.
Thanks a lot for your help
Kind Regards Claude