 |
streetmap macro
find out where a company is located with one keystroke
Run this macro when you have a company record active and it will open a browser page showing the company's location.
This macro will run within both Modulus and Daybook Enterprise. If you are likely to use this function frequently, then you may well wish to assign it to a Function Key, so that a single keystroke takes you there.
If you would like it to run whenever the Postcode field is changed, then put it in a macro called Modified 2/7. Please note that, in this case, users will need to have the Run Data Entry Macros option turned on in their personnel record.
Please note that this works only for URLs within the UK, though it could easily be modified for other countries and services, by changing the URL in the penultimate line.
Just paste in the following macro text:
`This macro opens the relevant streetmap.co.uk page from a Companies record
Gen Confirm ("Go to the map locating this company?")
If (OK=1) & ([COMPANIES]Postal Code#"")
`Non-UK users will need to amend the URL in the following line
OPEN WEB URL("http://www.streetmap.co.uk/streetmap.dll?P2M?P="+Replace string([COMPANIES]Postal Code;Char(Space );"")+"&Z=5";*)
`If you look carefully at the last line you will see "Z=5". Basically that means 'Zoom = 5 miles'
` If you want to bring up the streetmap page with 1 mile zoom or 2 mile zoom
`(in other words a closer view) then change it to Z=1, Z=2, etc
End if
|
|