Start a thread in VBA

Start a thread in VBA

Hi Folks!
How can I start a thread with VBA.
The problem is, when I write this code:
VBA Code:
thisProject.Tasks.Item(taskname).Run

it doens't start.
When i debug this request, there is also a mistake:
Objectvariable or With-Blockvariable not declared

what should i do?
Please help!
Yours, Mr.K

This is a migrated post! Originally posted on 19.03.2008 by user mrk. Please be aware that information can be outdated.