storing a range into a variable

R

Richard

Hi,

How do you store a range into a variable? I have the problem that when i
have copied a range into a variable, and then go and make changes in the
document, it somehow make the changes in the variable itself?

I need to store several different selections into an array and use them as a
template, because the program will call the different ranges as needed by the
system.

Hope someone have an answer. I have been struggling for weeks now

Thanx
Richard
[email protected]
 
M

Malcolm Smith

Hi,

How do you store a range into a variable? I have the problem that when
i have copied a range into a variable, and then go and make changes in
the document, it somehow make the changes in the variable itself?

I need to store several different selections into an array and use them
as a template, because the program will call the different ranges as
needed by the system.

Hope someone have an answer. I have been struggling for weeks now

Thanx
Richard
[email protected]


Richard

This is because the variable is just a pointer to the Range on the
document rather than a discrete variable on its own.

What do you want to keep maintained in the variable? Do you want just the
text or all of the formatting?

- Malc
 
Top