The Mindjet Labs

Hands-on MindManager
Welcome to The Mindjet Labs Sign in | Join | Help

Excel Demo

File Details
Downloads: 1952 File Size: 90.9kB
Posted By: Michael S. Scherotter Views: 13323
Date Added: 5 Jan 2007

Demonstration macro that builds a map based on a data from a Microsoft Office Excel Spreadsheet, a Map template, and map parts.

Arrow Down Installation:

  1. Download and Unzip ExcelDemo.zip into a directory on your system.
  2. Add the CreateMap.mmbas macro to one of the menus in MindManager.   I suggest using the Tools menu.  Read here on how to add a macro to MindManager.

Information What the Macro Does:

  1. Creates a new Map based on the Building Project.mmat template.
  2. Open the Excel spreadsheet (Roles.xls or Roles.xlsx) as an ADO data source.
  3. For each topic with the Role text marker,  search the Excel data source for all of the rows with the role from the topic text.
  4. Create process topics with the process.mmmp map part from the data in the process column.
  5. Create sub-process topics with the sub-process.mmmp map part from the data in the subprocess column.
  6. Create notes topics with the note.mmmp map part from the data in the notes column.

Idea Tinkering with this Demonstration:

  • Change the map template.
  • Change the map parts (process.mmmp, sub-process.mmmp, note.mmmp).
  • Change the data.
  • Adapt it to work with your excel data.
  • Adapt it to work with another data source entirely (there are ADO providers for Access, XML, MySQL, Oracle, SQL Server and other data sources).
  • In the macro Transaction_Execute() subroutine, change the connection and provider to use an Excel 2007 spreadsheet.

Happy Face What Macro/Object Model Techniques You Can Learn from this Demo

  • How to query ADO data sources.
  • How to use Document Transactions to group object model calls into a single undoable action.
  • How to iterate through all of the topics in a map.
  • How to query a topic for a text marker
  • How to use the debugging output window to debug your macro.
  • How to create documents from templates.
  • How to create topics from map parts.
  • How to show a message box to the user.

Thumbs Up Note:

This demonstration was adapted from a real-world customer solution that we built in three hours working with the customer at a Mindjet Labs workshop in San Francisco.   Read here about how it was built.

Filed under: , , ,
Comments
 

abhigujar said:

Very nice!
5 Jan 2007 7:14 PM
 

What Box said:

Can you make it so that changes made in MindManager will post back to Excel?
19 Jan 2007 3:03 PM
 

Michael S. Scherotter said:

What Box, You could definitely write another macro that posts the information back to Excel. We actually discussed that as a next step for the customer that we did this with. Their goal was to have these composite maps generated and sent into the field which were then annotated and sent back to HQ. The next step would be to process these returned maps and put the information back into the Excel spreadsheet. What that starts approaching is a workflow. One of the workflow management toolsets that I am exploring is the Windows Workflow Foundation (http://wf.netfx3.com/) which could make MindManager a host for that type business process. But that type of process wouldn't be in a simple macro, but in an add-in, service, or separate application.
22 Jan 2007 7:16 AM
 

databyu said:

I just wanted to let people know that I took your example and changed it to read from an Oracle database rather than Excel. I have more cleanup to do on it and would like to add in some pop-up windows for better querying. And I think a workshop on how to create a two-way macro between a database and mind map would be great.
7 Mar 2007 4:13 AM
 

vyang said:

Need to draw an org chart, wonder if your code works for Mind Manager 5.
2 Apr 2007 8:08 PM
 

Pills said:

Mind Manager 5 Yes good.
10 Jan 2008 5:28 PM
 

marie magnan said:

Bonjour, je suis interressée par tout le dossier content, mais impossible d'y avoir accés : no found! pour templortes,map parts, stiles, maps, macro,misc; public, filc ect... Quelqu 'un peut-il m'aider? D'avance merci Marie
6 Feb 2008 6:47 AM
 

Product Manager Type said:

Michael, This is great but from several places you must hear that bi-directional example for for Excel would enable great things (like product requirements tracking/reporting in spreadsheet, but envisioned and created then viewable/editable/sortable in the mindmap). For those of us that are mashers and hack macro writers please extend this example to synch (like the outlook integration). (and Workflow is too advanced for my personal productivity needs.)
11 Feb 2008 11:15 AM
 

SolW said:

aargh I can't get this to work at all in MindManger V5, excel 2003. Shame because I've got a great task for this macro...
5 Mar 2008 1:56 PM

Add Comment

Name (required)
Web Site (optional)
Comment (required)
Add