T
Tom
Please could someone look at this code. Is there a more versatile, efficient
way of doing this? How do I use .codename instead of .name - I couldn't get
this to work.
I call the function using :
Call DoCopy(Sheet13.Range("AD2").Address, Sheet3.Range("D12").Address,
Sheet3.Name)
Public Function DoCopy(copyFromRange As String, pasteIntoRange As String,
pasteIntoSheet As String)
Range(copyFromRange).Select
Range(Selection, Selection.End(xlDown)).Select
Selection.Copy
Worksheets(pasteIntoSheet).Activate
Range(pasteIntoRange).Select
ActiveSheet.Paste
End Function
Thanks
Tom
way of doing this? How do I use .codename instead of .name - I couldn't get
this to work.
I call the function using :
Call DoCopy(Sheet13.Range("AD2").Address, Sheet3.Range("D12").Address,
Sheet3.Name)
Public Function DoCopy(copyFromRange As String, pasteIntoRange As String,
pasteIntoSheet As String)
Range(copyFromRange).Select
Range(Selection, Selection.End(xlDown)).Select
Selection.Copy
Worksheets(pasteIntoSheet).Activate
Range(pasteIntoRange).Select
ActiveSheet.Paste
End Function
Thanks
Tom