Omega Owners Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

Search the maintenance guides for answers to 99.999% of Omega questions

Pages: [1]   Go Down

Author Topic: Excel and Access Questions  (Read 1172 times)

0 Members and 1 Guest are viewing this topic.

Mr Skrunts

  • Get A Life!!
  • *****
  • Offline Offline
  • Gender: Male
  • Skruntie Land.
  • Posts: 25676
  • 3.O Elite Saloon with all the toys,
    • 2003 CD 2.2 Auto
    • View Profile
Excel and Access Questions
« on: 21 August 2011, 15:17:26 »

I create a heck of a lot of spread sheets for various reasons etc, but these are fairly simple ones.


Decided to get adventerous but not sure if this can be done yet.  My better half does a lot of moble work and they have altered the way they do the paper work (hence more time wasted) One of the jobs is to manually write the post code of the call and add the mileage.  Could this be done on the spread sheet to automatically calculate the mileage with help from google earth/maps etc as every thing else seems to link to it.


Also converting a 5 couloum spread sheet into a data base for working out total time spent to individuals, copy from orange site, to note pad then to spread sheet not probs, but then need to convert that to access, and be able to update sread sheet daily/weekly.

TIA.  :y
Logged
Ask yourself :  " WHY do I believe in what I believe?"

Remember that my opinions expressed here are not representative of the opinions of other members on the OOF Forum.

JesterRT

  • Intermediate Member
  • ***
  • Offline Offline
  • Gender: Male
  • Stafford
  • Posts: 338
    • View Profile
Re: Excel and Access Questions
« Reply #1 on: 21 August 2011, 17:49:59 »

http://www28.zippyshare.com/v/88280802/file.html

You'll need to enable Macros and be running MS Office 2007 (or greater), and maybe ie9.

Essentially though, look at the way Google maps allows you to do a search between two postcodes, reduce the url down to something sensible, do that in VBA, parse the object for a particular CSS class, rip the number, pop it into the excel sheet.

I wrote that as a function so you can just type the postcodes into the spreadsheet and it goes away and does the legwork.  Good for 100 rows (but you can simple paste the formulas further if needs be).

Hope that helps.

*bet it doesn't work, as with most VBA stuff - it seems to be 'ok on my machine ;)'
Logged

JesterRT

  • Intermediate Member
  • ***
  • Offline Offline
  • Gender: Male
  • Stafford
  • Posts: 338
    • View Profile
Re: Excel and Access Questions
« Reply #2 on: 21 August 2011, 17:52:28 »

Not certain what you're after on the Excel/Access copy/paste/notepad front...

Do you start with an access database that needs updating, and just want to do that in a spreadsheet?


I'm bored, wife & kids are out, and I've finished washing/polishing the car  :y
Logged

Auto Addict

  • Administrator
  • *****
  • Offline Offline
  • Gender: Male
  • North Birmingham
  • Posts: 13554
  • Back to Vx to keep TB happy
    • Astra K Elite ST
    • View Profile
Re: Excel and Access Questions
« Reply #3 on: 21 August 2011, 19:19:40 »

Anythings feasible, hyperlink to bring up google, not sure how you could get the post code into the right area of the web page, and then pick up the mileage.

A lot of programming, and slow responses, I would have thought.
Logged
I like red cars

tunnie

  • Get A Life!!
  • *****
  • Offline Offline
  • Gender: Male
  • Surrey
  • Posts: 37573
    • Zafira Tourer & BMW 435i
    • View Profile
Re: Excel and Access Questions
« Reply #4 on: 21 August 2011, 21:34:07 »

Your better at looking at this the other way around, I assume she has to enter a number of postcosts at a time (wasting time bit?)

Its going to be fun linking a Spreadsheet to something that calculates distance, you would have to use VBA code, looks like its do-able:

http://processtrends.com/pg_google_earth.htm

I would maybe think about a web based solution, either PHP or HTML5 where by you enter (or import via .xls) a list of postcode, it then processes them on bulk giving distances. Then export again to a spreadsheet.

As your can be sure Google will alter their API's all the time to make maintaining it tiresome!

Logged

cem_devecioglu

  • Guest
Re: Excel and Access Questions
« Reply #5 on: 22 August 2011, 12:52:43 »

http://forums.asp.net/t/1332783.aspx/1

must add microsoft web service is not free..
« Last Edit: 22 August 2011, 13:04:17 by cem_devecioglu »
Logged

Jester

  • Newbie
  • *
  • Offline Offline
  • Gender: Male
  • Stafford
  • Posts: 29
    • View Profile
Re: Excel and Access Questions
« Reply #6 on: 22 August 2011, 18:10:59 »

The file link I posted earlier has the VBA script working to just type in the postcodes - it then does the webscrape to grab stuff from googlemaps.  But as tunnie points out - if google change their markup then it'll probably fail (but it's very easy to correct it, and google aren't likely to be changing it very often).

p.s. - I've screwed up my 'other' account (I updated it recently and adjusted my vehicles and was going to update the email address too, but I've obviously screwed up as I can't log into that account).  Any admins fancy helping?  Who's best to PM?
Logged
Pages: [1]   Go Up
 

Page created in 0.01 seconds with 17 queries.