PC Review


Reply
Thread Tools Rate Thread

How to create a custom numner format for IP addresses?

 
 
=?Utf-8?B?UEo=?=
Guest
Posts: n/a
 
      31st Jan 2007
How to create a custom numner format for IP addresses?
 
Reply With Quote
 
 
 
 
CoRrRan
Guest
Posts: n/a
 
      31st Jan 2007
Selection.NumberFormat = "000.000.000.000"

With selection to be substituted with any Range-object.

HTH, CoRrRan

PJ wrote:
> How to create a custom numner format for IP addresses?

 
Reply With Quote
 
=?Utf-8?B?VG9tIE9naWx2eQ==?=
Guest
Posts: n/a
 
      31st Jan 2007
I think you would need "000\.000\.000\.000"

in a country that uses the period as the decimal separator.

but even then that will only work correctly if you IP address has 3 digit
numbers for the last 9 digits and is entered as a number.

s = Replace("144.151.141.30",".","")
? s
14415114130
? format(s,"000\.000\.000\.000")
014.415.114.130



--
Regards,
Tom Ogilvy


"CoRrRan" wrote:

> Selection.NumberFormat = "000.000.000.000"
>
> With selection to be substituted with any Range-object.
>
> HTH, CoRrRan
>
> PJ wrote:
> > How to create a custom numner format for IP addresses?

>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I create a custom number format in Excel using a symbol? =?Utf-8?B?bWJ1Y2tyZWxs?= Microsoft Excel Misc 2 26th Jul 2006 12:49 AM
Create custom text format? Jaffo Microsoft Excel Misc 7 27th Jan 2006 11:38 PM
Is it possible to create your own custom format? Scott Steiner Microsoft Excel Misc 5 22nd Nov 2005 05:46 PM
Is there a way to create a custom date format? =?Utf-8?B?TE1pbGxlcg==?= Microsoft Outlook Discussion 6 11th Nov 2005 03:09 AM
How do I create a custom Number format for Dozens and Pieces Microsoft Excel Setup 0 26th Oct 2004 09:54 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:40 AM.