Hi all,
I checked everywhere for ip-address validation in excel, but I did not find any answer.
I found the following in the help files with excel wich might be of use to me, but I have no idea where to start.
This is the code in the helpfiles:
to validate an ip-address I started doing the following:
Okay as far as I know..
[ul]
[li]I declared a variable ipaddr[/li]
[li]I put the value in cell c6 into the variable ipaddr[/li]
[/ul]
now what?.. I need something like split in perl to check if the parts are smaller than 255 and larger than 0. How would I go about that?
I also found something like ParseLine but I have no idea how to use that in my situation where I do not want the parts to be put in another cell but want to use the parts to end up in another variable.
(I know that checking for 0<part<255 is not a complete way of checking if it is a valid ip-address but if I know that one the rest will be easy I think)
InDenial
I checked everywhere for ip-address validation in excel, but I did not find any answer.
I found the following in the help files with excel wich might be of use to me, but I have no idea where to start.
This is the code in the helpfiles:
Code:
Private Sub Worksheet_Calculate()
Columns("A:F").AutoFit
End Sub
to validate an ip-address I started doing the following:
Code:
Private Sub Worksheet_Calculate()
Dim ipaddr As String
Set ipaddr = Worksheets("Test").Range("c6")
End Sub
Okay as far as I know..
[ul]
[li]I declared a variable ipaddr[/li]
[li]I put the value in cell c6 into the variable ipaddr[/li]
[/ul]
now what?.. I need something like split in perl to check if the parts are smaller than 255 and larger than 0. How would I go about that?
I also found something like ParseLine but I have no idea how to use that in my situation where I do not want the parts to be put in another cell but want to use the parts to end up in another variable.
(I know that checking for 0<part<255 is not a complete way of checking if it is a valid ip-address but if I know that one the rest will be easy I think)
InDenial