Dear All,
I have developed a macro which copy my report and paste it as values to a new worksheet. The problem is that the report has a couple of graphs which are not copied as values and keep links to the original source. How to solve this issue and paste my graphs as values as well?
This is the code:
Thanks in advance
I have developed a macro which copy my report and paste it as values to a new worksheet. The problem is that the report has a couple of graphs which are not copied as values and keep links to the original source. How to solve this issue and paste my graphs as values as well?
This is the code:
Code:
Sub Moving()
Application.ScreenUpdating = False
Dim varPath As String
Dim WbOpen As Workbook
Set WbOpen = Workbooks.Add
varPath = coding.Range("b1").Value
currdashboard.Copy before:=WbOpen.Sheets(1)
Application.DisplayAlerts = False
WbOpen.SaveAs varPath & "\Currency and Interest Rate Dashboard-" & Format(Date, "dd-mmm-yyyy") & ".xlsx"
Application.DisplayAlerts = True
Cells.Select
Selection.Copy
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks:=False, Transpose:=False
Application.CutCopyMode = False
WbOpen.Close savechanges:=True
Application.ScreenUpdating = True
End Sub
Thanks in advance