|
-
Jan 5th, 2004, 07:24 AM
#1
Thread Starter
Lively Member
VBInstance question
Hi all,
I am writing an add-in that manipulates selected text,
My question is- how do I get the selected text ?
I guess it should start with something like - "VBInstance.ActiveCodePane.CodeModule..."
Thanks !
-
Jan 5th, 2004, 08:26 AM
#2
Hyperactive Member
-
Jan 5th, 2004, 10:03 AM
#3
-
Jan 5th, 2004, 10:31 AM
#4
I am writing a VB Addin, but I havent actually used selected text yet.
From what I have seen so far (this is just an educated guess), what you want is something like:
VBInstance.ActiveCodePane.CodeModule.GetSelection(a,b,c,d)
where a,b,c,d are numeric variables that will return the start/end positions of the selection (then use .Lines to get the relevant text)
-
Jan 6th, 2004, 03:41 AM
#5
Thread Starter
Lively Member
Thanks all,
I finaly dicided to take the ugly way and use sendkeys to copy&paste and then taking the value from the clipboard...
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|