how can i format the cell if type 00146f7ebg96
out put is 00:14:6f:7e:bg:96 automatic
tnx in advance
godspeed
how can i format the cell if type 00146f7ebg96
out put is 00:14:6f:7e:bg:96 automatic
tnx in advance
godspeed
up
any idea?
You will need VBA or a formula in another cell
what is the command?
tnx
HiOriginally Posted by xtrmhyper
in the worksheet tab, rightmouse the tab and select View Code and paste this into there
any single cell 12 figure entry will be converted, but you will not be able to use the field as = 00146f7ebg96 for comparison or lookup etc.Private Sub worksheet_change(ByVal Target As Range) Dim myV As String, myValue As String, mc As String If Target.Cells.count = 1 And Target.Column = 1 And Not IsEmpty(Target) Then mc = ":" myV = Target.Value If Len(myV) = 12 Then myValue = Mid(myV, 1, 2) & mc & Mid(myV, 3, 2) & mc & Mid(myV, 5, 2) & mc & Mid(myV, 7, 2) & mc & Mid(myV, 9, 2) & mc & Mid(myV, 11, 2) Target.Value = myValue End If End If End Sub
hth
---
Si fractum non sit, noli id reficere.
thank you sir its work
how can change the formula in column b,c or d only
tnx in advance
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks