LuisVilarMoreira
New Member
- Joined
- Feb 15, 2018
- Messages
- 19
- Office Version
- 2016
- Platform
- Windows
Hello everybody
I need your help with a problem
I have this code
The code works, but only occasionally I get an error
- Run-time error '481':
Invalide picture
When a make "Debug" it will go to
Thank a lot
Regard
I need your help with a problem
I have this code
VBA Code:
Sheets("graficos").ChartObjects("g_gts_dp").Activate
ActiveChart.ChartArea.Select
ActiveChart.ChartArea.Copy
Set Grafico = Sheets("graficos").ChartObjects("g_gts_dp").Chart
ArquivoGIF = ThisWorkbook.Path & "\temp.gif"
Grafico.Export Filename:=ArquivoGIF, FilterName:="GIF"
Image1.Picture = LoadPicture(ArquivoGIF)
The code works, but only occasionally I get an error
- Run-time error '481':
Invalide picture
When a make "Debug" it will go to
Code:
Image1.Picture = LoadPicture(ArquivoGIF)
Thank a lot
Regard