Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hey guys ,
Please Help on this Task
-On a click of a Button / Text box , data from straight Table should be directly send to excel . I have rough idea on macro but not able to implement on it ,
Info - ( I don't need any special icon from caption to be added )
Thank you all of you , finally it worked . from all your suggestions it helped a lot . Thank you
Link - Qlikview Export to Excel Part 1 - BuffaloBI.com
Sub BasicExportToExcel
DIM ExcelApplication, ExcelWorkbook
SET ExcelApplication = CREATEOBJECT("Excel.Application")
SET ExcelWorkbook = ExcelApplication.Workbooks.Add
ActiveDocument.GetSheetObject("CH618").CopyTableToClipBoard TRUE
ExcelWorkbook.Worksheets(1).Paste
ExcelApplication.DisplayAlerts = FALSE
ExcelWorkbook.SaveAs "..\Desktop\KPI_Parameters.xls" , 56
ExcelApplication.Quit
MsgBox "Export Complete & Saved in Desktop"
End Sub
Here you go,
SUB EXPORT
set sObject1 = ActiveDocument.GetSheetObject("CH01")
sObject1.Export "C:\Users\Kingof\Qlikview\MyDoc.xls"
end sub
https://community.qlik.com/docs/DOC-4870
https://luciancotea.wordpress.com/2013/07/18/qlikview-macros-useful-collection/
Hi,
There is no direct way to achieve it.
You have to use macro.
Please find below thread for your reference.
Regards,
Prashant
check this too
thanks , for the source
I have pasted the code in the button ( macro) and changed the object code and file path , FURTHER iam Stuck ( what should be done in the straight table)
You need to do anything in the straight table ..In your macro include the Straight table ChartID
Thank you all of you , finally it worked . from all your suggestions it helped a lot . Thank you
Link - Qlikview Export to Excel Part 1 - BuffaloBI.com
Sub BasicExportToExcel
DIM ExcelApplication, ExcelWorkbook
SET ExcelApplication = CREATEOBJECT("Excel.Application")
SET ExcelWorkbook = ExcelApplication.Workbooks.Add
ActiveDocument.GetSheetObject("CH618").CopyTableToClipBoard TRUE
ExcelWorkbook.Worksheets(1).Paste
ExcelApplication.DisplayAlerts = FALSE
ExcelWorkbook.SaveAs "..\Desktop\KPI_Parameters.xls" , 56
ExcelApplication.Quit
MsgBox "Export Complete & Saved in Desktop"
End Sub
Thanks Avinash for the Help
Hello!
Could you tell me, please, what might be a reason for this macro not to work on server?
("Allow macro " in QMC is switched on)