Hey all,
I have a sheet where I insert data each day and I want to generate a monthly overview. The Formula in the cell says:
=IF(COUNTIF(Sheet11!$CKO13:$CTT13;E$2)=0;"";COUNTIF(Sheet11!$CKO13:$CTT13;E$2))
I want to change the characters in red color according to a certain month to later choose from a dropdown menu.
The only thing I could manage is to change the characters and switch through each month with:
Private Sub CommandButton15_Click()
Sheets("Sheet11").Range("E5:BF103").Select
Selection.Replace What:="CKO", Replacement:="CKT", LookAt:=xlPart, _
SearchOrder:=xlByRows, MatchCase:=False, SearchFormat:=False, _
ReplaceFormat:=False
End Sub
But here I cannot jump from Jan to Aug. Is there a function i can use to change the **th character of a formula in a cell with formatting the FormulaText as String, use the Replace Function and then insert it back again with the changed characters?
Thanks very much for the help!
Greetings
I have a sheet where I insert data each day and I want to generate a monthly overview. The Formula in the cell says:
=IF(COUNTIF(Sheet11!$CKO13:$CTT13;E$2)=0;"";COUNTIF(Sheet11!$CKO13:$CTT13;E$2))
I want to change the characters in red color according to a certain month to later choose from a dropdown menu.
The only thing I could manage is to change the characters and switch through each month with:
Private Sub CommandButton15_Click()
Sheets("Sheet11").Range("E5:BF103").Select
Selection.Replace What:="CKO", Replacement:="CKT", LookAt:=xlPart, _
SearchOrder:=xlByRows, MatchCase:=False, SearchFormat:=False, _
ReplaceFormat:=False
End Sub
But here I cannot jump from Jan to Aug. Is there a function i can use to change the **th character of a formula in a cell with formatting the FormulaText as String, use the Replace Function and then insert it back again with the changed characters?
Thanks very much for the help!
Greetings