How do I receive email in Excel - excel

how can I read email from my GMail account using Excel?
Here is what I have considered:
Using the CDO object.
Problem: I don't think that this object can receive emails.
Using web scraping with an IE or xmlHTTP object. This is one way to go, and I already have experience and VBA code to do much of the work but it's not simple.
Interfacing with Microsoft Outlook. Problem: Why lock myself in to a more expensive product that Microsoft will want me to pay for when upgrading?
Running an iMacros to scape the data. I have not explored this way properly (because I am hoping to stick to Excel) although it may be the simplest.
Any ideas? What is the simplest reliable way?
Thanks!
P.S. Google search shows many many pages with instructions to send emails using Excel. That's too easy :) . I am trying to retrieve/read emails using Excel.

I'm not sure what the overall goal here is, but I would suggest you are approaching it wrong.
If the goal is to put a list of emails into an Excel file, I would suggest you write the email code in Java, C#, VB, etc. and then generate an Excel file from that.
It's far easier to generate Excel files after getting email information than it is to get email information from VBA.

Related

Lotusscript logic for repeating calendar options, but in separate app

I need to use the "repeat options" subform in the mail file in an application that tracks our implementations.
I have looked at the code behind this in the mail file, but it is way too complex for my needs, as I just want the whole logic on how to get the various dates/times I need to create a document for. I have seen some calls to a method, generateRepeatDatesExt(), but I did a search and couldn't find any trace of it.
Anyone knows where that thing is hidden? Or better, anyone has a sample app that creates repeating dates that use the repeat options found in the mail file?
Any help, pointers, samples are welcomed!!!
Thanks a lot...
I found a really nice demo application that does exactly what I need, and it was done by Julian Robichaux a while back. Details and sample file can be found here: http://www.nsftools.com/tips/NotesTips.htm#repeatdates

Is there a way to scrape the dataLayer available on the page instead of the regular HTML Elements in excel VBA?

I am trying to fetch some data from the web pages using Excel VBA and have been fairly successful.
However I have realized that most of the pages do have data-layer available on the page and thus if I am able to use the same, lot of effort can be reduced in massaging the data to bring it in usable format.
I tried to call the data layer by Document.getElement method but this seems not to be working.
I am not a hard core developer just can swim for my needs so please let me know if this is possible as all of my search results so far have yielded nothing.
I normally use SeleniumBasic (Excel Plugin) for WebScraping Needs. They way it can be done is by using
driver.ExecuteScript("return dataLayer[x].variableName")

How to print a multi-page map with data from excel, MapPoint and VBA maybe?

I have an excel file with information on my company's customers including addresses and latitude and longitude. I need to generate printed street maps showing a reasonable level of detail with pins showing the customers and bubbles displaying their info. Essentially I need to create something that looks like a Thomas Guide except with our customer info layered on to the street maps. I've been looking for DAYS and can't find any software to automate this process.
Currently I'm importing the data into Microsoft MapPoint, which does a fine job of generating the map with all necessary data. However MapPoint can only print what's currently displayed on the screen. So I'm stuck printing at a close zoom level, scrolling over, printing again, and continuing this process ad nauseum.
Is there maybe a way to automate this with VBA in MapPoint? I can find almost no info online about VBA for MapPoint.
Or maybe there's a piece of software out there that can do this at the push of a button. Printing a multi-page map of an area doesn't seem like that crazy of a demand.
Any help would be appreciated.
MapPoint's API is actually pretty well documented in the MapPoint help file, and most of the examples use VB6, which should be adaptable for VBA - you will need to add a reference to MapPoint's object model.
Yes you can automate the printing. Other approaches include copying to the clipboard; save to web page (and extract the Map's GIF image); or to use the GetPictureFromObject(). I recently wrote an article about using the latter from C# (it would be simpler from VB6 or VBA)
You could also print to a very large PDF, see the tips from this newsletter --
http://www.mp2kmag.com/update/mappoint.newsletter/2013-02-18/
Here's a direct link to the article --
http://www.mapforums.com/print-large-multiple-sheet-maps-any-printer-27603.html
Eric

google docs tampering

NOTE: sorry as this is not a programming question but i am not aware about the site to post this query. so i thought any of you could help me out with this.
QUERY:
i have created an excel sheet using google docs to help users to fill their details online. but my problem is that every user has access to this sheet.
some users tampered the sheet and deleted all data.
is there a mechanism provided by google docs to prevent tampering of data?
what should i do?
should i use something else to store user's data so that no user can tamper the data?
Use the Google Form function and set your Google spreadsheet to private
If you go to Data > Protected Sheets and Ranges you can adjust the settings of who can monkey with the data. Probably the best thing to do, however, is to use a Google Form, which will allow you to gather data in a structured format and dump it to the spreadsheet. That is really your best bet...

How to get Google page rank and number of searches in Excel sheet?

I have a link in one column and, based on it, I want
Number of Google searches in column 2
Page rank of first result in column 3
I know this can be done, as I saw a friend pulling google search result right in Excel. If anyone knows, please share how I could do that.
If I correctly interpret your question, one of the tasks you had to do is
How do I get programmatically the Google page rank for a list of URLs?
You can find the code to do this in this CodeProject article:
Request Google´s Pagerank programmatically
Regarding the Excel part: it depends which programming framework or platforms you could use. You could use to create a .NET extension for Excel using the Microsoft Visual Studio Tools for Office.
From Excel there is Data->Get External Data->New Web Query. Is this what you want?
You have two options, both of which are unfortunately poorly documented.
If you are comfortable in C/C++, you can write a special DLL called an "XLL" that you can call during Excel runtime. There is some sparse documentation available. Note that this stuff isn't very fun to use.
If you prefer .NET, there is a binding for the entire Office suite outlined here that allows you to write COM-based methods that you can call from Office. It is intended for automation, but you can write any managed code you want and have Excel call into it.
There is also what Remou just suggested; I don't actually own a copy of Excel to test that out, but it may be the easiest option.
By link i meant keywords and not URL. I want to put a keyword in one cell and pull number of searches and page rank in adjacent cells.
I tried doing the same with web query in excel but i can only reach till the number of searches. that too not in the proper cell (trying to figure out). But i have no clue about how to get the pageranks.
I am not that tech savvy to code a binder or plugin for myself. Although i am checking the link by splattne. Please focus more light on it. Is it gonna be time consuming if i try to make this one..?
Regards
Thinkjayant
There are some nice plugins for this (in various languages) on GitHub:
http://github.com/search?langOverride=&language=&q=pagerank&repo=&start_value=1&type=Repositories&x=0&y=0
I have a PR checker functions in my Excel plugin "SeoTools".
http://nielsbosma.se/projects/seotools/

Resources