Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
IP address format
How can I reformat IP addresses out of a text string so that I can use their
values in my excel/vb functions. Thanks |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
IP address format
The Split function can split the IP address in to an array.
Dim S As String Dim Arr As Variant Dim N As Integer S = 12.34.56.78 Arr = Split(S,".") For N = LBound(Arr) To UBound(Arr) Debug.Print Arr(Ndx) Next N -- Cordially, Chip Pearson Microsoft MVP - Excel Pearson Software Consulting, LLC www.cpearson.com "shois" wrote in message ... How can I reformat IP addresses out of a text string so that I can use their values in my excel/vb functions. Thanks |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
IP address format
Debug.Print Arr(Ndx)
should be Debug.Print Arr(N) -- Cordially, Chip Pearson Microsoft MVP - Excel Pearson Software Consulting, LLC www.cpearson.com "Chip Pearson" wrote in message ... The Split function can split the IP address in to an array. Dim S As String Dim Arr As Variant Dim N As Integer S = 12.34.56.78 Arr = Split(S,".") For N = LBound(Arr) To UBound(Arr) Debug.Print Arr(Ndx) Next N -- Cordially, Chip Pearson Microsoft MVP - Excel Pearson Software Consulting, LLC www.cpearson.com "shois" wrote in message ... How can I reformat IP addresses out of a text string so that I can use their values in my excel/vb functions. Thanks |
#4
Posted to microsoft.public.excel.programming
|
|||
|
|||
IP address format
Break each component down into separate cells with DataText to Columns and
a separator of stop '.' -- HTH RP (remove nothere from the email address if mailing direct) "shois" wrote in message ... How can I reformat IP addresses out of a text string so that I can use their values in my excel/vb functions. Thanks |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
for Email address format | Excel Worksheet Functions | |||
Address number changes to calendar format | Excel Discussion (Misc queries) | |||
How do I put my OE Address Book in a csv format | Excel Discussion (Misc queries) | |||
Address Format Problem | Excel Discussion (Misc queries) | |||
How to format a cell as email address | Excel Discussion (Misc queries) |