View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
joao joao is offline
external usenet poster
 
Posts: 1
Default vba pastespecial


HI,

i am tring to copy data form one spreadsheet to another within the sam
workbook. i need to use the paste special, adding the values. I wrot
the folowwing code and it goes trough ok. it copies the information bu
it does not paste. and it does not show any problem.

anyone could help?

Thanks

Worksheets("dados").Cells(c, E).Select
Selection.Copy
x = c + 1
z = f + 2
Worksheets("Plan").Select
Cells(x, z).PasteSpecial Operation:=xlPasteSpecialOperationAd

-----------------------------------------------
~~ Message posted from http://www.ExcelTip.com
~~View and post usenet messages directly from http://www.ExcelForum.com