Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

where can i set the path for the "send to excel" function

Hi Anyone,

when i click on "send to Excel" nothing happens.  Where do I set the path where the excel spreadsheet should be sent?

Regards,

Laura

1 Solution

Accepted Solutions
Siva_Sankar
Master II
Master II

Laura, If your qlikview is in local and if you export to excel, it will populate or open. Incase if you are trying to export excel in any server, make sure microsoft excel is installed. if you are accessing server via citrix or using some other way check the path C:\Users\ your computer name \AppData\Local\Temp

View solution in original post

6 Replies
Anonymous
Not applicable
Author

"Send To Excel" creates file without asking in the temp folder:

C:\Users\<your windows name>\AppData\Local\Temp

And it opens Excel with the data.  If nothing happens, check if the Excel opens on background.

Anonymous
Not applicable
Author

Hi Laura,

Try this code:

sub test

'Set the path where the excel will be saved

     filePath = "C:\Test.xls"

     'Create the Excel spreadsheet

     Set excelFile = CreateObject("Excel.Application")

     excelFile.Visible = true

     'Create the WorkBook

     Set curWorkBook = excelFile.WorkBooks.Add

     'Create the Sheet

     'first chart object

     Set curSheet = curWorkBook.WorkSheets(1)

'loop

chartArray = Array("CH06","CH09", "CH10")

usedRows=0

For Each chart In chartArray

   Set i = ActiveDocument.GetSheetObject(chart)

    chartCaption = i.GetCaption.Name.v

    curSheet.Cells(usedRows+1, 1)=chartCaption

     i.CopyTableToClipboard true

     curSheet.Cells(usedRows+3, 1).Select

     curSheet.Paste

     usedRows=curSheet.UsedRange.Rows.Count+3 --->function to get the first unused row

Next

'loop end

excelFile.Visible = true

'Save the file and quit excel

     curWorkBook.SaveAs filePath

     curWorkBook.Close

     excelFile.Quit

     'Cleanup

     Set curWorkBook = nothing

     Set excelFile = nothing

end sub

Siva_Sankar
Master II
Master II

Laura, If your qlikview is in local and if you export to excel, it will populate or open. Incase if you are trying to export excel in any server, make sure microsoft excel is installed. if you are accessing server via citrix or using some other way check the path C:\Users\ your computer name \AppData\Local\Temp

Anonymous
Not applicable
Author

Thank-you everyone

Anonymous
Not applicable
Author

Thank-you Michael

Laura Castagna

Business Systems and Process Analyst, NSW Business Chamber

140 Arthur Street North Sydney NSW 2060

Tel: 02 9458 7804 | Mob: 0429 486 934 | Web: www.nswbusinesschamber.com.au<http://www.nswbusinesschamber.com.au>

Twitter<http://www.twitter.com/nswbc> | Facebook<https://www.facebook.com/NSWBusinessChamber> | LinkedIn<http://www.linkedin.com/company/388425?trk=saber_s000001e_1000> | YouTube<http://www.youtube.com/nswbctv>

<http://www.nswbusinesschamber.com.au/>

Anonymous
Not applicable
Author

Thank-you Siva

Laura Castagna

Business Systems and Process Analyst, NSW Business Chamber

140 Arthur Street North Sydney NSW 2060

Tel: 02 9458 7804 | Mob: 0429 486 934 | Web: www.nswbusinesschamber.com.au<http://www.nswbusinesschamber.com.au>

Twitter<http://www.twitter.com/nswbc> | Facebook<https://www.facebook.com/NSWBusinessChamber> | LinkedIn<http://www.linkedin.com/company/388425?trk=saber_s000001e_1000> | YouTube<http://www.youtube.com/nswbctv>

<http://www.nswbusinesschamber.com.au/>