PDA

View Full Version : go to start position of selection



saban
10-12-2006, 12:58 AM
Lets say
start1=selection.start
if start1 > selection.end then
I would like to put my cursor in position of start1

or other solution is "how can I loop until comment is found"

thnx

ALe
10-12-2006, 01:12 AM
?

Well, I assumed start1 is the first cell of your selection and selection.end is the last cell of your selection.
So I thought you're trying to determine if the value of the first cell is bigger than the value of the last cell.
Then I lost myself...what's the relation with comments???

saban
10-12-2006, 01:33 AM
Sorry about that this is word document
Well I have comment in same position as start1 but somehow I dont know how to loop throught the text until it reaches the comment or start1

fumei
10-13-2006, 07:41 AM
1. Hmmmm. start1=selection.start
If start1 > selection.endI have never heard of a situation where the Selection.Start is greater than the Selection.End. If it was greater than....would that not mean the Start came after the End...in which case, hmmmm, it would not be the Start...now would it?

Can you please carefully state what you are doing?

start1 appears to be Selection.Start. OK. That means you have the Selection at Point X...whatever that is.

What has this got to do with looping through text????