msoutopico
New Member
- Joined
- Jan 4, 2013
- Messages
- 5
Hi there,
I have an Excel file with several cells containing text. The text contains some codes and I would like to know whether it's possible to lock those codes (by means of some formula or VBA macro, for example). The aim is that any text contained in the cell can be modified except those codes.
I know a whole cell can be locked/protected but I don't think it is possible to lock only part of the content of the cell. Am I right?
The codes could be matched with some regexp pattern or wildcard. E.g. The cell's content is, say: "Blabla some text [ABC_123] blabla more text blabla." I would like to lock any text being matched by regexp \[.+?\].
Thank you very much for your answers in advance!
Cheers, Manuel
I have an Excel file with several cells containing text. The text contains some codes and I would like to know whether it's possible to lock those codes (by means of some formula or VBA macro, for example). The aim is that any text contained in the cell can be modified except those codes.
I know a whole cell can be locked/protected but I don't think it is possible to lock only part of the content of the cell. Am I right?
The codes could be matched with some regexp pattern or wildcard. E.g. The cell's content is, say: "Blabla some text [ABC_123] blabla more text blabla." I would like to lock any text being matched by regexp \[.+?\].
Thank you very much for your answers in advance!
Cheers, Manuel