View member feedback to this tip.
I found this to be the fastest and best way to export a view's data to Excel. It keeps the formatting specified in the view as well as columns such as total and categories. The best part is that it is super fast.
Code
Put this code into a agent to be run manually from action menu. You can then copy it into any database from which you want to export a view.
The replacesubstring function was copied from Ultimate Replacesubstring Function on SearchDomino.com. Thanks to its developer, Scott Bockelman.
MEMBER FEEDBACK TO THIS TIP
This agent does not work as advertised. When run from the Web, it does nothing. When run from the Notes client, it creates a spreadsheet, but the spreadsheet only includes the view column headings. It does not include the view data.
-- Tony G.
********************************************************
It has potential to be a great tip, but unfortunately has these problems:
- Says "via Web" but appears to be a LotusScript agent to be run from Notes client (am I missing something)?
- Does not work as-is: for example, it has "Exit Function" statement without a beginning Function statement.
- Generates error "WEBREDIRECT not valid" and I'm using Excel 2000. Excel version (required, or at least what the author uses) should be indicated.
-- ...
To continue reading for free, register below or login
To read more you must become a member of SearchDomino.com
');
// -->

Samir
********************************************************
Unless I'm missing something, I don't understand how this agent can work via the Web. The UI classes are not supported there, not to mention that there is no view context when running an agent from the Web. It does look like it would work fine run from the Notes client. Perhaps the title of the article is just incorrect.
-- Scott D.
********************************************************
Looking at my tip again, I found out that I forgot to mention that the database needs to be on server that has an HTTP task running on it. Also, "via the Web" in the name doesn't mean it is a Web agent -- sorry for the confusion! It is a Notes-based agent that uses an HTTP task to export data to Excel.
Sorry for the trouble.
-- Amit Kamat
********************************************************
Not as useful as the Export to Excel code I found elsewhere. (Most likely the Sandbox), which can export any view to any Excel spreadsheet three different ways. All by view, selected in the view and custom by fields on the form. I put this code into every custom database I create because it never fails, the user wants to sort it their own way.
Program was developed by Greg Vandeligt.
-- Leslie M.
Do you have comments of your own? Let us know.