Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
See why IDC MarketScape names Qlik a 2025 Leader! Read more
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Export a bar chart to excel

I've been looking through the forum for an answer for this and I haven't been able to find a good one.

My question is very simple. I want to export a bar chart (image) from qlikview into excel by clicking on the export to excel button. Problem is, when I do this, it exports a table of the values used to create the bar chart and not the actual graph itself. Does anyone know how you can enable qlikview to do this?

8 Replies
shumailh
Creator III
Creator III

As far as my knowledge is concern, I never seen any simple way to this. May be there would be a macro to generate bar chart on excel.

Regards,
Shumail

manishkumar75
Partner - Creator II
Partner - Creator II

Hi,

There is no direct QlikView option which can be enabled to Export Graph into Excel. Alternatively you can achieve this by writing a macro . The macro is as below :-

Sub ExportGraph()
Dim vSheet
Set XLApp = CreateObject("Excel.Application")
XLApp.Visible = TRUE
Set XLDoc = XLApp.Workbooks.Add
vSheet = ""
vSheet = "Sheet1"
ActiveDocument.GetSheetObject("CH26").CopyBitmapToClipboard 'Copy the charts
XLDoc.Sheets(vSheet).Range("A" & 1).Select
XLDoc.Sheets(vSheet).Paste

Set XLDoc = Nothing
Set XLApp = Nothing


End Sub

Hope, it will work.

sparur
Specialist II
Specialist II

Hello, Manish.

Your macro will export chart as a bitmap (as a picture) but will not create a bar chart in Excel 😞

manishkumar75
Partner - Creator II
Partner - Creator II


It is true, that the macro will export chart as bitmap(as a picture) , but this what asked in the post.

Below is the problem statement :

My question is very simple. I want to export a bar chart (image) from qlikview into excel by clicking on the export to excel button. Problem is, when I do this, it exports a table of the values used to create the bar chart and not the actual graph itself. Does anyone know how you can enable qlikview to do this?

Smile

Not applicable
Author

Hi mainsh,

Yes your macro will export the bar chart but the macros are not running in the Qlikview 9.00 version in the Access point.

Since i am trying to do the same thing.Since macros are not working . I am left without solution 😞

Regards,XXX

sparur
Specialist II
Specialist II

Yeah, Manish.

sorry, I didn't understand about initial problem 🙂

vardhancse
Specialist III
Specialist III

Yes me also looking for similar requirement.

vardhancse
Specialist III
Specialist III

instead of macro we can get the image directly.

browser->In browser->Right click(on the required chart)->print->

Graph image will be opened in separate browser window->Image->right click->copy and paste in excel.


we can get as an image in excel


but looking for a solution to export direct graph instead of image