Keith Howard
Active member
- Joined
- Jan 28, 2010
- Messages
- 28
- Programming Experience
- 5-10
Hello,
I am trying to do this, without the local copy just being a pointer to the original variable.
The original variable is the following received parameter:
ByVal Paragraph1 As Microsoft.Office.Interop.Word.Paragraph
I want to declare a local variable:
Dim Selection1 As Microsoft.Office.Interop.Word.Paragraph = Paragraph1.Application.Selection
The problem is that when I modify the variable Selection1, I seem to also be modifying the received parameter Paragraph1.
Therefore, is there a quick way to make a local copy of a Reference type variable?
Many thanks.
Keith
I am trying to do this, without the local copy just being a pointer to the original variable.
The original variable is the following received parameter:
ByVal Paragraph1 As Microsoft.Office.Interop.Word.Paragraph
I want to declare a local variable:
Dim Selection1 As Microsoft.Office.Interop.Word.Paragraph = Paragraph1.Application.Selection
The problem is that when I modify the variable Selection1, I seem to also be modifying the received parameter Paragraph1.
Therefore, is there a quick way to make a local copy of a Reference type variable?
Many thanks.
Keith