Hi all,
I'm probably doing something wrong, this code worked before but I'm getting a debug?
Any ideas?
Sub DrawChart()
Dim CurrentFileName As String
CurrentFileName = ThisWorkbook.Path & "\current.gif"
Dim CurrentChart As Chart
Set CurrentChart = ThisWorkbook.Sheets("Charts").ChartObjects("Compliance").Chart
CurrentChart.Export Filename:=CurrentFileName, filtername:="GIF"
Dashboard.Image1.Picture = LoadPicture(CurrentFileName)
End Sub
I'm probably doing something wrong, this code worked before but I'm getting a debug?
Any ideas?
Sub DrawChart()
Dim CurrentFileName As String
CurrentFileName = ThisWorkbook.Path & "\current.gif"
Dim CurrentChart As Chart
Set CurrentChart = ThisWorkbook.Sheets("Charts").ChartObjects("Compliance").Chart
CurrentChart.Export Filename:=CurrentFileName, filtername:="GIF"
Dashboard.Image1.Picture = LoadPicture(CurrentFileName)
End Sub