Skip to Content
0
Dec 03, 2009 at 06:24 PM

Need help on OLE excel paste in selected cell range

386 Views

Hi Friends,

I need to paste the clipbord contents in a selected range of cells using ole automation.

Rage is selected using the following code :

CALL METHOD OF G_EXCEL 'Cells' = G_CELL1

EXPORTING #1 = 4

#2 = 1.

CALL METHOD OF G_EXCEL 'Cells' = G_CELL2

EXPORTING #1 = P_ROW

#2 = gv_col.

CALL METHOD OF G_EXCEL 'Range' = G_CELLRANGE

EXPORTING #1 = G_CELL1

#2 = G_CELL2.

now need to past the clipbord contents in G_CELLRANGE.

Would appriciate your help,

Thanks,

John