get current position

User avatar
sal21
PlatinumLounger
Posts: 4334
Joined: 26 Apr 2010, 17:36

get current position

Post by sal21 »

Possible to get current position, of my pc, in VB 6.0 or VBA.
Tks.

User avatar
HansV
Administrator
Posts: 78236
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: get current position

Post by HansV »

Do you mean geographic location?
Best wishes,
Hans

User avatar
sal21
PlatinumLounger
Posts: 4334
Joined: 26 Apr 2010, 17:36

Re: get current position

Post by sal21 »

yes. geographic location.

User avatar
HansV
Administrator
Posts: 78236
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: get current position

Post by HansV »

I'm afraid I cannot help you with that. Do a Google search for vba geolocation or for vba location from ip address
Best wishes,
Hans

User avatar
StuartR
Administrator
Posts: 12577
Joined: 16 Jan 2010, 15:49
Location: London, Europe

Re: get current position

Post by StuartR »

HansV wrote:
21 May 2020, 12:14
Do a Google search for vba geolocation or for vba location from ip address
My IP address would place me a few hundred miles away from my physical location. I think you can only do what you want if the user has a GPS chip or similar.
StuartR


User avatar
HansV
Administrator
Posts: 78236
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: get current position

Post by HansV »

Recent versions of Windows have geolocation services built in; I don't know how they work, but I assume there is an API for them. Privacy-minded users may have disabled these services...
Best wishes,
Hans

User avatar
StuartR
Administrator
Posts: 12577
Joined: 16 Jan 2010, 15:49
Location: London, Europe

Re: get current position

Post by StuartR »

Even if the user has enabled apps to access Windows location, it would still need the PC to have some means of knowing where it is.
You do not have the required permissions to view the files attached to this post.
StuartR


User avatar
HansV
Administrator
Posts: 78236
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: get current position

Post by HansV »

So anyway, I don't know how to do it... :sorry:
Best wishes,
Hans