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

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Export to Excel through macro in qlickview 9

Previously we are using Qlikview 7.5 and able to send mail through macro, but in Qlikview 9 we are getting error

obj.CopyTableToClipboard true

in macro, kindly help it out. Code is written below:-

function SheetIt(ExcelDoc,SheetName,ChartName,Category)
ExcelDoc.Sheets(SheetName).activate
ExcelDoc.Sheets(SheetName).activate
' msgbox SheetName
ExcelDoc.Sheets(SheetName).activate
set obj = ActiveDocument.getsheetobject(ChartName)
obj.CopyTableToClipboard true
ExcelDoc.Sheets(SheetName).paste
ExcelDoc.Sheets(SheetName).cells.select
ExcelDoc.Sheets(SheetName).cells.mergecells = false
ExcelDoc.Sheets(SheetName).Cells.EntireRow.RowHeight = 12.75
ExcelDoc.Sheets(SheetName).Cells.EntireColumn.AutoFit
'msgbox "Category " & Category
ExcelDoc.Sheets(SheetName).name = Category
end function

19 Replies
Not applicable
Author

how to add attachment to reply qvw report

biester
Specialist
Specialist

If you mean you want to add an attachment here: you must "Reply" (not possible with Quick Reply) and can add an attachment on the OptionsTab there.

Rgds,
Joachim

Not applicable
Author

I am attaching the qvw file for same.

Its picks data from various sourse , generate excel file and mail

Its required c:\ToSent folder for same

Not applicable
Author

Any solution

Not applicable
Author

I am attaching the qvw file for same.

Its picks data from various sourse , generate excel file and mail

Its required c:\ToSent folder for same

Not applicable
Author

I am attaching the qvw file for same.

Its picks data from various sourse , generate excel file and mail

Its required c:\ToSent folder for same

Not applicable
Author

You do one thing..first pay the license cost..cut copy paste dont work always...it is security issue

Not applicable
Author

Lots of programing is being done in the given code..so its better read and understand code line by line..then try to correct it..no copy paste....

Not applicable
Author

I already mentioned same file wkg with 7.5 but giving error in 9.

So its not security issue it could be memory/clipbord issue

rajeshvaswani77
Specialist III
Specialist III

Hi jaswinder,

Would this macro work from Publisher?

Thanks,

Rajesh Vaswani