W
Wim De Preter
Hey Steve (or...)
I tried your macro to export a (pivot)chart to a jpg-
format, but in compiling there was a problem with the
name of "Chart1".
I have a form called "Formulier1", and it is the Chart -
in Pivotchartview - that I would like to export in jpg-
format. But I can't find the exact name for this
pivotchart.
So how exactly do you find the name for "Graph1"?
Many thanks in advance
Wim
Ps: this was SteveT's macro
Private Sub cmdExport_Click()
Dim strFile As String
strFile = InputBox("Please Enter a valid path and file
name (ie:
c:\temp\graph.jpg)", "Save As?", "c:\temp\graph.jpg")
Dim gObj As Object
'the graph in this example is named "Graph1"
Set gObj = Me.Graph1.Object
gObj.Export strFile, "JPEG" ' "GIF" also available
Set gObj = Nothing
Me.Graph1.Action = acOLEClose
End Sub
I tried your macro to export a (pivot)chart to a jpg-
format, but in compiling there was a problem with the
name of "Chart1".
I have a form called "Formulier1", and it is the Chart -
in Pivotchartview - that I would like to export in jpg-
format. But I can't find the exact name for this
pivotchart.
So how exactly do you find the name for "Graph1"?
Many thanks in advance
Wim
Ps: this was SteveT's macro
Private Sub cmdExport_Click()
Dim strFile As String
strFile = InputBox("Please Enter a valid path and file
name (ie:
c:\temp\graph.jpg)", "Save As?", "c:\temp\graph.jpg")
Dim gObj As Object
'the graph in this example is named "Graph1"
Set gObj = Me.Graph1.Object
gObj.Export strFile, "JPEG" ' "GIF" also available
Set gObj = Nothing
Me.Graph1.Action = acOLEClose
End Sub