PDA

View Full Version : Select all Text



gibbo1715
12-05-2005, 08:22 AM
All

How can I select all the text in a document via code into a string please?

Thanks

Gibbo

Marcster
12-05-2005, 08:25 AM
Hi Gibbo :hi:,

Does this do what your after?:
Selection.WholeStory

Marcster.

gibbo1715
12-05-2005, 08:26 AM
Hi Markster,


Sorry didnt realise youd posted already before i made my edit

I need to select all the text in my document into a string as i intend running a function to replace it all (Encription)

Gibbo

TonyJollans
12-05-2005, 10:55 AM
Hi gibbo,

ActiveDocument.Content will give you the text - assign it to a string if you want - but be very careful if your document contains anything other than normal text, or you'll end up losing it.

gibbo1715
12-06-2005, 03:28 AM
Thanks That did what i wanted,