R
Ray Chiu (a1ahardware.florida at gmail)
Background
========
* 2003 MS-Projevct
* Attempting to select, copy and paste tasks programmtically (VBA)
* SelectRow Row:=8, RowRelative:=False
Observations
=========
I have recorded macros to provide VBA examples of copy and paste. Cutting
and pasting (via VBA) seems to work well. Selecting tasks (programmatically)
for copy and paste has been another story.
When using: SelectRow Row:=8, RowRelative:=False
Instead of selecting the eighth task, it selects, the eighth displayed task.
This seems to be true whether RowRelative is true or false
Syntax
=====
The syntax for this function is:
expression .SelectRow(Row, RowRelative, Height, Extend, Add)
expression Optional. An expression that returns an Application object.
Row Optional Long. The number of the row to select. The default is the
active row.
RowRelative Optional Boolean. True if the location of the new selection
is relative to the active selection. The default value is True.
Height Optional Long. The number of rows to select in addition to the
active cell.
Extend Optional Boolean. True if the active selection is extended into
the new selection. The default value is False.
Add Optional Boolean. True if the new selection is added to the active
selection. The default value is False.
Questions
=======
1) Is there a method to select a task based on its UniqueID or its task
number (not based on its displayed ordinal position)?
2) Once a task is selected is there a simple method to APPEND the selected
task to the end of the task list? Maybe there is a simple method to get the
position of the last task?
3) Not sure that I really understand the Extend and Add arguments: are they
something that can be used to solve my address selection problem?
Constructive guidance is greatly appreciated.
========
* 2003 MS-Projevct
* Attempting to select, copy and paste tasks programmtically (VBA)
* SelectRow Row:=8, RowRelative:=False
Observations
=========
I have recorded macros to provide VBA examples of copy and paste. Cutting
and pasting (via VBA) seems to work well. Selecting tasks (programmatically)
for copy and paste has been another story.
When using: SelectRow Row:=8, RowRelative:=False
Instead of selecting the eighth task, it selects, the eighth displayed task.
This seems to be true whether RowRelative is true or false
Syntax
=====
The syntax for this function is:
expression .SelectRow(Row, RowRelative, Height, Extend, Add)
expression Optional. An expression that returns an Application object.
Row Optional Long. The number of the row to select. The default is the
active row.
RowRelative Optional Boolean. True if the location of the new selection
is relative to the active selection. The default value is True.
Height Optional Long. The number of rows to select in addition to the
active cell.
Extend Optional Boolean. True if the active selection is extended into
the new selection. The default value is False.
Add Optional Boolean. True if the new selection is added to the active
selection. The default value is False.
Questions
=======
1) Is there a method to select a task based on its UniqueID or its task
number (not based on its displayed ordinal position)?
2) Once a task is selected is there a simple method to APPEND the selected
task to the end of the task list? Maybe there is a simple method to get the
position of the last task?
3) Not sure that I really understand the Extend and Add arguments: are they
something that can be used to solve my address selection problem?
Constructive guidance is greatly appreciated.