Reputation: 36247
I'm working with a list of addresses in excel 365. I want to perform a reverse geocode function to produce addresses from the available longitude and latitude info. to do this I have found an excel addin https://github.com/gramener/geocode-excel , which I downloaded. you can see an example in the screenshot above. the formula which it introduces is:
=@NominatimReverseGeocode(B32,C32)
Now what I want to do is make this available in my main sheet so that I can use the NominatimReverseGeocode. I've gone to File - Options - File - Add Ins
But the function 'NominatimReverseGeocode' does not show up in my main sheet. How can I make this function available in my main sheet?
EDIT:
I renamed the file to geocode.xlam in powershell. Now I'm getting:
Upvotes: 1
Views: 332
Reputation: 3391
If you only need this code available for yourself and not other users by far the simplest way would be to create a personal macro workbook.
Create a workbook and save it as
C:\Users\username\AppData\Roaming\Microsoft\Excel\XLSTART\PERSONAL.xlsm
Copy the code from the GeoCode workbook into PERSONAL.xlsm.
PERSONAL.xlsm will autoload with Excel. Prefix your function call with the workbook name: =PERSONAL.xlsm!@NominatimReverseGeocode(B32,C32)
Upvotes: 1
Reputation: 2032
If your intent is to make the Geocode functions available in all of your workbooks on your computer, do this:
Geocode.xlsm
and Geocode.xlam
files.File
> Save As
.Excel Macro-Enabled Workbook (*.xlsm)
to Excel Add-in (*xlam)
.Save
.Home
screen.New
> Blank workbook
.Developer
> Excel Add-ins
.Geocode
.OK
.=@NominatimReverseGeocode(51.5,-0.144)
in any cell.If your intent is to just have the geocode functions in one specific workbook, let me know and I'll write up the steps for that.
Upvotes: 4