Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
PJ PJ is offline
external usenet poster
 
Posts: 112
Default How to create a custom numner format for IP addresses?

How to create a custom numner format for IP addresses?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 19
Default How to create a custom numner format for IP addresses?

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?

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default How to create a custom numner format for IP addresses?

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
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I create a custom button that combines format settings? PhillipB Excel Worksheet Functions 2 April 30th 09 03:05 PM
Create custom text format? Jaffo Excel Discussion (Misc queries) 7 January 27th 06 11:38 PM
Is it possible to create your own custom format? Scott Steiner Excel Discussion (Misc queries) 5 November 22nd 05 05:46 PM
Create a custom format to convert seconds to minutes. XOXO Excel Discussion (Misc queries) 3 April 12th 05 11:34 PM
How can I create custom format cells for Ohms(Ω)?? GlanzaV Excel Worksheet Functions 1 February 15th 05 05:10 PM


All times are GMT +1. The time now is 05:32 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"