i want to format a cell to display a UK national insurance number in the following format, I enter WG256759C IN CELL A:1 and want it to display like this: WG 25 67 59 C
i want to format a cell to display a UK national insurance number in the following format, I enter WG256759C IN CELL A:1 and want it to display like this: WG 25 67 59 C
Hi Gazd, welcome to the forum.
Please take a moment to read the forum rules, paying close attention to #5 (posting in the correct sub-forum). I've moved your post this time, but future posts not adhering to the forum rules may be locked or deleted.
Thanks!
Unlike numbers, text cannot be reformatted in the manner you wish.
You can, however use code to change the formatting.
Right click on the tab you want to formatting to change and then choose View Code.
Paste the following - change the C:C in the Intersect(Range("C:C"),Target) section to the column you want to change.
![]()
Please Login or Register to view this content.
Mdbct,
what do you mean by "right click on the tap" ? what tap ?
I tired to creat a command bottom and put the code in it but it didn't work.
I appreciate your help
oldchippy
-------------
![]()
![]()
Blessed are those who can give without remembering and take without forgetting
If you are happy with the help you have received, please click the <--- STAR icon on the left - Thanks.
Click here >>> Top Excel links for beginners to Experts
Forum Rules >>>Please don't forget to read these
Mdcbct means right click on the Sheet tab I.e Sheet1 View code and paste the code above and it will do what you want it to.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks