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
(e-mail address removed)
 
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
(e-mail address removed)


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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top