Este fórum está sendo desativado

Depois de 9 anos, este fórum será desativado. Mas calma.... estamos migrando para uma comunidade no DISCORD. Junte-se a nós.

ENTRAR PARA DISCORD

Qualquer dúvida sobre gráficos, como criá-los, alterar eixos principais e secundários, adicionar/remover categorias e séries, legendas e rótulos, etc.
#53484
Olá Gurus,

Arquivo roda perfeito conforme imagem abaixo, porem ao utlizar a função ( Compartilhar Pasta de Trabalho) dá ERRO ( Erro em tempo de execução '-2147467259(80004005)':
O método 'Width' do objeto 'ChartObject' falhou



imagem:
https://uploaddeimagens.com.br/imagens/4TbzD2s
Código: Selecionar todos
Private Sub UserForm_Initialize()

Set CurrentChart = Sheets("Enter").ChartObjects(1).Chart
CurrentChart.Parent.Width = 180
CurrentChart.Parent.Height = 160

'converter objeto de gráfico em imagem gif

nome = ThisWorkbook.Path & Application.PathSeparator & "temp.gif"
CurrentChart.Export Filename:=nome, filtername:="GIF"

' mostrar grafico como imagem no objeto

Grafico1.Picture = LoadPicture(nome)


Set CurrentChart = Sheets("Enter").ChartObjects(2).Chart
CurrentChart.Parent.Width = 180
CurrentChart.Parent.Height = 160

'converter objeto de gráfico em imagem gif

nome = ThisWorkbook.Path & Application.PathSeparator & "temp.gif"
CurrentChart.Export Filename:=nome, filtername:="GIF"

' mostrar grafico como imagem no objeto

Grafico2.Picture = LoadPicture(nome)

 End Sub


long long title how many chars? lets see 123 ok more? yes 60

We have created lots of YouTube videos just so you can achieve [...]

Another post test yes yes yes or no, maybe ni? :-/

The best flat phpBB theme around. Period. Fine craftmanship and [...]

Do you need a super MOD? Well here it is. chew on this

All you need is right here. Content tag, SEO, listing, Pizza and spaghetti [...]

Lasagna on me this time ok? I got plenty of cash

this should be fantastic. but what about links,images, bbcodes etc etc? [...]

Estamos migrando para uma comunidade no Discord