Macro to sync GTD Addin and NextAction

Tim McIntyre

Registered
Hello:

I tried to paste all the text in the attached file, but the site would not accept my new thread. Somewhat frustrating.

Anyhow, review the attached file for an explanation and the macro code.

Attached files image_235.txt (8.8 KB) 
 

roakleyca

Registered
I think I followed your directions...but I ended up getting a MS Visual Basic error pop-up:

Run-time error '91': Object variable or With block variable not set

Any thoughts on what I may have done wrong?

Thanks,

Ryan
 
K

KevinFlys

Guest
Benefits of Becoming a Member

Can you simply tell if Runescape is a great game maplestory powerleveling or not without you becoming a member? The answer to that would be, NO! Well you can make a few predictions about Runescape and see the moral of the game when being a regular user and not a member but becoming a member brings a whole lot of additions to Runescape that you would never see if you were not a member. Being a member of Runescape has so many benefits and I will try to list them all here for you. Runescape tells you them, but I'm going to detail it a few features for you here. runescape money
 

Tim McIntyre

Registered
Problem with the macro

Hi roakleyca:

I rechecked line by line of the macro, it matches what I am running.

I have attached another file which is the exact macro, just to make sure I did not leave something out. Make sure there is no Wordwrap on when you paste it.

When the macro crashed, did it open the visual basic editor and highlight the line with the problem? Try running the macro with the Visual Basic editor open. Once the macro crashes, you have to stop it ( stop button in VB editor ) to try it again.

Attached files image_236.txt (3.4 KB) 
 

Tim McIntyre

Registered
Perhaps an Aha! moment

Hi roakleyca

This macro only works on the active task that is open in the Task form. It must be the Active Window. This will not work on a task that is merely highlighted on the Task List.

The macro specifically requires that the Task is the active window. It uses the myOlApp.ActiveInspector.CurrentItem property.

I placed the macro button on the toolbar in the Task Form.

Perhaps that is why you are having problems.
 

Tim McIntyre

Registered
Has anyone else tested this?

Hi funkym:

Thanks for the link. Have you tried this macro. It works fine for me but roakleyca had a problem with it.

A few observations:

1. Projects can be created in NextAction. If you create a task with that new Project and it is synced to Outlook, that task will be sorted as Project (none). Open each task and run the macro. That wlll create the Project in GTD, but you will get a popup from GTD asking if you want to save XYZ as a Project. Answer Yes.

2. Project Sorting. I used to use @ProjectName format to designate important projects. However, NextAction ignores punctuation characters in the first position and still sorts alphabetically. So, I now use 0_ProjectName, 1_ProjectName for those projects I want at the top of the list.
 

Dan ONeil

Registered
Does the GTD/Nextaction addin work with Outlook 2007?

I spent most of the morning trying to get this macro to work and have struck out. When I click on the button, nothing happens--no warning, no error, no action. I have copied the text of the macro into the module (word wrap was off), I have disabled all security on Macros ("No Security check..."). I have put the button both in the main outlook task bar and in the quick launch bar of the task window (I can't figure out how to add it to the ribbon). Any suggestions?
Thanks,
Dan
 

Tim McIntyre

Registered
Hi Dan:

I do not use Outlook 2007, so can't answer that question.

You have to put the button on the Task Form itself.

Open a new Task and Go to Tools > Customize > Commands.

Scroll down the categories to Macros and click - you will see P1.Sync_GTD in the Commands list

Drag that to the Toolbar of the Task form. Save the Task and close it. Now when you open a new Task, the button should be visible.

This macro only works when a Task is Open. If you create the Task on GTD, then there will be a Project and Action in those fields. Running the Macro will attach two new Categories to the Task - @Action and p:project.

When you sync the BB and open Next Action, you will see that Task in the proper Project and Action.

If you create a Next Action and sync the BB, then your new Task will have a Project of (none) in the GTD view. Open each one of these Tasks and run the macro. It will move into it's proper Project and Action.
 

mtb604

Registered
Project required?

Do you have to have a project defined for each task for this macro to work? Some of my tasks are independent of projects and the macro crashes.
 
Top