+ Reply to Thread
Results 1 to 4 of 4

VB code to compare distances and give me a list of locations Closest to furthest

  1. #1
    Registered User
    Join Date
    12-07-2011
    Location
    Ontario
    MS-Off Ver
    Excel 2003
    Posts
    19

    VB code to compare distances and give me a list of locations Closest to furthest

    Good day, I currently have a piece of VB code that will get me the distance between 2 cities.

    Thinking I can use this I now need to take the install city/country input (C4) and generate a list out the Depot City/country locations (closest to furthest) based off a sheet of depots that are listed by city/country

    then I need the result list to be displayed in 2 columns (broken out by city F3 and country G4)


    Here is the code I am currently using.


    Please Login or Register  to view this content.

    Any suggestions

    Thanks in advance
    Last edited by kal-el.Kanata; 12-07-2011 at 02:44 PM.

  2. #2
    Forum Moderator Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    28,650

    Re: VB code to compare distances and give me a list of locations Closest to furthest

    Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code. Posting code without them makes your code hard to read and difficult to be copied for testing. Highlight your code and click the # at the top of your post window. For more information about these and other tags, found here
    Richard Buttrey

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Registered User
    Join Date
    12-07-2011
    Location
    Ontario
    MS-Off Ver
    Excel 2003
    Posts
    19

    Re: VB code to compare distances and give me a list of locations Closest to furthest

    Thanks I adjusted as requested, now to get some help with this. I am at a loss
    Last edited by kal-el.Kanata; 12-08-2011 at 02:29 PM.

  4. #4
    Registered User
    Join Date
    12-07-2011
    Location
    Ontario
    MS-Off Ver
    Excel 2003
    Posts
    19

    Re: VB code to compare distances and give me a list of locations Closest to furthest

    Is there anyone out there that could help me with this?

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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