Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Copy to Clipboard option not working for container object

Hi all,

I am trying to copy the container object using Copy to Clipboard option but not able to copy the container,

Please help me out with this.

 

R/Murali.

8 Replies
Anonymous
Not applicable
Author

Hi murli, I have tried copying it as both object and as an image. Both works fine. Can you please add some info to your problem.

rahulpawarb
Specialist III
Specialist III

Hello Murli,

Please check for Copy/Clone Sheet Objects option present under Security Tab of Sheet Properties (Alt + Ctrl + S). If it is deselected then select it and click OK. Post this you can able to copy the container object.

Please correct me if I misunderstood the scenario.

Regards!

Rahul

Anonymous
Not applicable
Author

Hi Rahul,

copy/clone option is enabled, still iam not able to copy.

R/Murali.

Anonymous
Not applicable
Author

Hi Shiva,

find the sample file below.

R/Murali

stabben23
Partner - Master
Partner - Master

Hi,

Your macroname is CopyCNR but you try to trigger macro copy, could that be Your problem?

stabben23
Partner - Master
Partner - Master

I'll think you have made a copy/past from another macro because you dont have the fieldnames in the macro inside the qvw.

stabben23
Partner - Master
Partner - Master

If you do like this you can save a png of the container to a path instead. Also change the trigger in the button to CopyCNR.

Sub CopyCNR
set ContractNr = ActiveDocument.fields("Sales Order ID").GetSelectedValues
If ContractNr.Count=1 Then
  ActiveDocument.GetSheetObject("CT01").ExportBitmapToFile "C:\TEST\test.png" 'change path here
  Else
Msgbox("Select one value.")
End If
End Sub

Anonymous
Not applicable
Author

Thanks Staffan, now iam able to copy container object.

R/Murali.