Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
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
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
"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.
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
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
Thank-you everyone
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/>
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/>