Forum Discussion
Inserting formula in a cell
- Jul 21, 2022
Hi NRASA0743
yes, that's because this was the formula that you wanted to put in the cell based on your original question.
Sorry, now I think I understand: You want only the last 4 characters of whatever is currently in the cell? This should do it:
Selection.Value = Right(Selection.Value, 4)
Please note that this works only for single cells, not for a selection of multiple cells.
Martin_Weiss the 4 desired characters do not appear.
- NRASA0743Jul 20, 2022Copper Contributor
Martin_Weiss macro only shows the "*****" but not the last 4 characters. No error or break mode.
- Martin_WeissJul 21, 2022Bronze Contributor
Hi NRASA0743
yes, that's because this was the formula that you wanted to put in the cell based on your original question.
Sorry, now I think I understand: You want only the last 4 characters of whatever is currently in the cell? This should do it:
Selection.Value = Right(Selection.Value, 4)
Please note that this works only for single cells, not for a selection of multiple cells.
- NRASA0743Jul 21, 2022Copper ContributorOh ok I see my mistake now. Thank you