J
John
I have the following code for copying a chart and pasting
it as a picture into newly created sheet.
The problem are two fold:
1) it seems to take a long time for it to be copied (like
5 seconds or so for each chart)
2) Nothing visible gets pasted?
Anyone knows what's going on here please?
Private Sub Cmd_AddShCopyChrts_Click()
Dim wsMySheet As Worksheet
Sheets("Charts").Select
ActiveSheet.Shapes("Chart 1").Select
Selection.Copy
Set wsMySheet = Worksheets.Add
wsMySheet.Select
ActiveSheet.PasteSpecial Format:="Picture (Enhanced
Metafile)", Link:=False _
, DisplayAsIcon:=False
End Sub
it as a picture into newly created sheet.
The problem are two fold:
1) it seems to take a long time for it to be copied (like
5 seconds or so for each chart)
2) Nothing visible gets pasted?
Anyone knows what's going on here please?
Private Sub Cmd_AddShCopyChrts_Click()
Dim wsMySheet As Worksheet
Sheets("Charts").Select
ActiveSheet.Shapes("Chart 1").Select
Selection.Copy
Set wsMySheet = Worksheets.Add
wsMySheet.Select
ActiveSheet.PasteSpecial Format:="Picture (Enhanced
Metafile)", Link:=False _
, DisplayAsIcon:=False
End Sub