View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
sgltaylor sgltaylor is offline
external usenet poster
 
Posts: 16
Default Copy Range and Assign a Defined Name to the Pasted Range

Hi All,

I need some help with the following:

I am looking for the code which will allow me to copy a range
from one worksheet to another and at the same time assign
a defined name to the pasted area. For example, the range
A1 to A30 on worksheet 2 is copied and pasted to worksheet 1
starting in cell B30. A defined name of "result" is also created
at the same time.

The trick is the worksheets will not always be the same and
neither will the pasted ranges or the address where the
range is to be pasted.

Any help would be greatly appreciated.

Thanks,

Steve