How to lookup an IP address in an Excel spreadsheet?
Posted
by Kevin Williams
on Super User
See other posts from Super User
or by Kevin Williams
Published on 2009-11-25T17:56:53Z
Indexed on
2010/03/25
1:03 UTC
Read the original article
Hit count: 531
I am working with a decent sized spreadsheet of domains and server names. Another user of the spreadsheet needs the IP address for each of the DNS entries on the worksheet. Instead of manually adding and then having to maintain this list I was hoping there was an easy way to do an IPAddress lookup to display the IP address in a cell.
I've seen some VBScripts that call gethostbyname, e.g.:
Declare Function GetHostByName Lib "wsock32.dll" Alias "gethostbyname" (ByVal Host As String) As Long
But I'm not a VB expert so I'm not sure if this is the right way to go.
Any advice/links would be appreciated!
- also if this is a question better suited for Stack Overflow - let me know, I'm new here.
© Super User or respective owner