+ Reply to Thread
Results 1 to 2 of 2

Using a button to Open Google Maps referencing an address from a worksheet cell

  1. #1
    Registered User
    Join Date
    10-25-2019
    Location
    Seattle, WA
    MS-Off Ver
    Newest version of 360
    Posts
    1

    Using a button to Open Google Maps referencing an address from a worksheet cell

    Hello - Have done a lot of searching trying to find a simple way to do the following:

    - Have a button (or inserted shape that looks like a button) called "Map It"
    - User clicks on "Map It"
    - The click action opens a new browser window in google maps
    - The action also uses a previously entered address from the worksheet cell to automatically map that location

    I have tried inserting a shape as button and assigning a google maps url. That works great and opens a new browser window with Google maps, but I cannot find a way to reference the address cell from the worksheet and insert the address in google maps automatically.

    Any specific guidance for a simple way to do this would be much appreciated. This seems like a fairly simple thing to do, but I can't seem to bring it across the finish line.

  2. #2
    Forum Contributor frabulator's Avatar
    Join Date
    09-16-2015
    Location
    United States
    MS-Off Ver
    2019
    Posts
    105

    Re: Using a button to Open Google Maps referencing an address from a worksheet cell

    You might find the Google Maps Developers Manual insightful. There is a section about modifying the URL to set parameters (like displaying an address, map, etc.). An excerpt from this document is quoted below:

    Launch Google Maps and perform a specific action

    To launch Google Maps and optionally perform one of the supported functions, use a URL scheme of one of the following forms, depending on the action requested:

    Search — launch a Google Map that displays a pin for a specific place, or perform a general search and launch a map to display the results:
    https://www.google.com/maps/search/?api=1&parameters

    Directions — request directions and launch Google Maps with the results:
    https://www.google.com/maps/dir/?api=1&parameters

    Display a map — launch Google Maps with no markers or directions:
    https://www.google.com/maps/@?api=1&map_action=map&parameters

    Display a Street View panorama — launch an interactive panorama image:
    https://www.google.com/maps/@?api=1&map_action=pano&parameters

    Important: The parameter api=1 identifies the version of Maps URLs this URL is intended for. This parameter is required in every request. The only valid value is 1. If api=1 is NOT present in the URL, all parameters are ignored and the default Google Maps app will launch, either in a browser or the Google Maps mobile app, depending on the platform in use (for example, https://www.google.com/maps).

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Google Maps API
    By Gamal in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-20-2017, 02:17 PM
  2. Replies: 4
    Last Post: 07-31-2017, 01:08 AM
  3. VBA Route Calculator - Google Maps Api 22 Minutes quicker than Actual Google Website
    By lookingforhelp1 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-06-2015, 01:23 PM
  4. Click to open Google Maps using Excel address
    By dd2120 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-20-2015, 04:09 AM
  5. Programming Google maps worksheet
    By cbryan in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-13-2014, 03:44 AM
  6. [SOLVED] How to open Google Maps with GPS Co-Ordinates
    By frogboy in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-20-2012, 08:02 PM
  7. [SOLVED] referencing a checkbox cell address in a worksheet
    By Erik Andreassen in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-28-2005, 12:05 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