Results 1 to 6 of 6

Help woth geocoding, or reverse geocoding

Threaded View

  1. #1
    Registered User
    Join Date
    12-07-2012
    Location
    london england
    MS-Off Ver
    Excel 2010
    Posts
    21

    Help woth geocoding, or reverse geocoding

    Hi all,

    I'm after another bit of help if possible,


    My plan ideally is that when my operatives are on site, they need to use their laptop to open a connection, below is the code I'm currently to force the connection, its also getting IP information from them.

    However what I would like to achieve, is somehow, be able to use geocode, to get their co ordinates, and basically tell me the street location they were in at the time.

    Does that make sense?

    Any help appreciated.

    Below is the code I'm currently running (apologies if its messy) I'm new to this!


    Sub GetIPAddrInfo()
     
     
     
    Application.EnableCancelKey = xlInterrupt
     Dim response As Variant
    Dim InBxloop As Boolean
    Dim InBxloop1 As Boolean
     Dim iRet As Integer
        Dim strPrompt As String
        Dim strTitle As String
        Dim wbk1 As Workbook, wbk2 As Workbook
        MyName = ThisWorkbook.Name
    
    
    
    Dim strComputer As String
    Dim objWMIService As Object
    Dim colIPConfig As Object
    Dim IPconfig As Object
    Dim i As Integer
     
    
    Range("A2").Select
    Selection.ClearContents
    
     
    
    
    
    
    Range("A2:A20").Select
    Selection.ClearContents
     
     
     Do
    
    InBxloop = True
     
     
     
    strComputer = "."
    Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")
    Set colIPConfig = objWMIService.ExecQuery _
    ("Select * from Win32_NetworkAdapterConfiguration where IPEnabled=TRUE")
    For Each IPconfig In colIPConfig
    If Not IsNull(IPconfig.IPAddress) Then
    For i = LBound(IPconfig.IPAddress) To UBound(IPconfig.IPAddress)
     
    ActiveCell = IPconfig.IPAddress(i)
    
     
    Do While Not IsEmpty(ActiveCell)
    ActiveCell.Offset(1, 0).Select
     
    Loop
    Next
    End If
     
    Next
    
    If Range("A5") <> "" Then
    Exit Sub
    End If
    
     
     If Range("A2").Value = "" Then
     
     MsgBox "Internet Required!"
     
    
     
     Else
     
    End If
    
     
     
     Loop While InBxloop = True
     
    
    Range("A:A").Select
    Selection.Columns.AutoFit
    Range("A1").Select
    Range("A1").Value = Environ("Username")
    
    
    End Sub
    Last edited by margal; 11-19-2016 at 11:28 AM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Reverse strings udf function to reverse numbers
    By YasserKhalil in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-07-2015, 07:03 AM
  2. [SOLVED] GeoCoding - Find the closest point
    By ZiadzExcel in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-14-2015, 03:44 PM
  3. [SOLVED] Using the Google Geocoding API in Excel
    By russkris in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 08-12-2014, 01:17 AM
  4. Reverse Geocoding Excel Help (see attachment)
    By zsemago in forum Excel General
    Replies: 1
    Last Post: 02-28-2012, 03:40 PM
  5. Reverse Data In A Cell / Reverse Cell Contents
    By nostawydoc in forum Excel General
    Replies: 5
    Last Post: 12-18-2009, 05:20 PM
  6. Graphing formulas woth continuous variables
    By Klorgrodan in forum Excel General
    Replies: 2
    Last Post: 02-10-2009, 10:27 AM
  7. Neat tool for mapping (geocoding) addresses straight from Excel
    By Phillip Holmstrand in forum Excel General
    Replies: 0
    Last Post: 01-23-2006, 08:15 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1