View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
ojas_maru ojas_maru is offline
external usenet poster
 
Posts: 1
Default Problem in PasteSpecial function


I everyone this is my first port in this forum
I m facing a weird problem
I have following code written in VBA

Dim Source As Range
Target.*Copy*
Set Source = Application.Worksheets("Sheet2").Range("$A$1,$A$3" )
Source.*PasteSpecial* xlPasteAll, xlPasteSpecialOperationNone
Target.Select

This works perfectly fine

And when i write the same code in VC++ (Excel com addin)
paste special just throws me into catch block
More if my rangeptr contains more than one cell then it says ki merge
cell should of equal size ?? (None of my cells are merged in tha
range

--
ojas_mar
-----------------------------------------------------------------------
ojas_maru's Profile: http://www.msusenet.com/member.php?userid=184
View this thread: http://www.msusenet.com/t-187050837