View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
terminator_ba terminator_ba is offline
external usenet poster
 
Posts: 1
Default Problem with function creation


Please help me, my question is the following:
How can i create a function in Excel/VBA which copy the value in a cell
that is not the cell in which the function is executed and paste this
value in another cell?

I tried the following:

function transfer(cell1,cell2)
range("cell1").select
selection.copy
range("cell2").select
activesheet.paste
end function

But i got no success, please help me


--
terminator_ba
------------------------------------------------------------------------
terminator_ba's Profile: http://www.excelforum.com/member.php...o&userid=35511
View this thread: http://www.excelforum.com/showthread...hreadid=552826