

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
On Click of button , send to Excel
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 )
- Tags:
- click on button send
Accepted Solutions


- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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/

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
There is no direct way to achieve it.
You have to use macro.
Please find below thread for your reference.
Regards,
Prashant
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂


- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
check this too


- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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)


- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You need to do anything in the straight table ..In your macro include the Straight table ChartID


- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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


- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks Avinash for the Help

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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)
