Re: An unexpected error occured with the method
- From: "Rod Gill" <rod AT project-systems DOT co DOT nz>
- Date: Wed, 21 Jun 2006 16:07:42 +1200
So why are you selecting the columns? If the indicator column isn't visible
your code will crash, one of many reasons why moving the cursor in a vba
macro is poor programming, slow and expensive to develop!!
--
Rod Gill
Project MVP
Visit www.msproject-systems.com for Project Companion Tools and more
"Daniel Engelschalt" <Daniel.Engelschalt@xxxxxxxxxxxxxx> wrote in message
news:1150108672.907956.302130@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hi Gill,
Thank you for your fast response.
My function starts with:
SelectTaskColumn Column:="Indicators", Additional:=3
as the very first command.
The goal is to mark all tasks, outline and analyze them and after a
task has been analyzed mark these that match a given condition.
To mark tasks I use SelectTaskField for which I first have to outline
all tasks (row).
A command like activeproject.Tasks(currentTask.ID).font.color=1 could
be helpful, but I haven't found something like this.
Daniel
Rod Gill wrote:
Hi,
What's the code that causes the problem? Moving the cursor to tasks to
read/write data is completely unnecessary and causes slow and problematic
code. For example if you try to move to a task that has been filtered out
or
to a sub-task that is not visible your code errors out.
Use:
activeproject.tasks("My Task").work=8*60
Don't move to the task then edit, it simply isn't robust!
--
Rod Gill
Project MVP
Visit www.msproject-systems.com for Project Companion Tools and more
.
- Follow-Ups:
- Re: An unexpected error occured with the method
- From: Daniel Engelschalt
- Re: An unexpected error occured with the method
- References:
- An unexpected error occured with the method
- From: Daniel Engelschalt
- Re: An unexpected error occured with the method
- From: Rod Gill
- Re: An unexpected error occured with the method
- From: Daniel Engelschalt
- An unexpected error occured with the method
- Prev by Date: Re: How can I see that a task is empty/not set?
- Next by Date: Re: An unexpected error occured with the method
- Previous by thread: Re: An unexpected error occured with the method
- Next by thread: Re: An unexpected error occured with the method
- Index(es):
Relevant Pages
|