View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
jmoffat[_12_] jmoffat[_12_] is offline
external usenet poster
 
Posts: 1
Default visual basic pasting formulae


I didn't exatly follow your logic but to paste a cell I use


activecell.value=sheets("Sheet 4").cells(rr+2,cc+1)

This assumes the data is in a common workbook otherwise ...

activecell.value=workbooks("book2.xls").sheets("Sh ee
4").cells(rr+2,cc+1)

Hope this help

--
jmoffa
-----------------------------------------------------------------------
jmoffat's Profile: http://www.excelforum.com/member.php...nfo&userid=115
View this thread: http://www.excelforum.com/showthread.php?threadid=27011