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: 
Not applicable

Error in Macro script


Hi,

Can anyone please have a look on attached and when I am clicking ok the macro it is hightlighting

  Email=v.GetContent.String and showing

Object Required=v

Please can anyone let me know is there any error in macro.

37 Replies
marcus_sommer

This is your (reduced) code which worked:

sub ExcelFile

Set myApp = CreateObject ("Outlook.Application")

Set myMessage = myApp.CreateItem(olMailItem)

myMessage.BodyFormat = 3 'Outlook.OlBodyFormat.olFormatRichText

myMessage.To = "marcus.sommer@md.de"

myMessage.Subject = "Test File " & Date()

myMessage.Send

Set myMessage = Nothing

Set myApp = Nothing

end sub

Generally will be an outlook-mail opened?

- Marcus

Not applicable
Author

Thanks very much it's working to both outlook and for gmail also with little change in email.

Not applicable
Author

Hi,

It's working in qlikview personal edition and when I am trying to implement the same in Qlikview server it's again showing the meassage

ActiveX component can't create object: 'Excel.Application'

Any help please as I want ttis to implement in server and I have qlikview 11 in server.

Thanks.

CELAMBARASAN
Partner - Champion
Partner - Champion

QV server should have Excel installed.

Also need some settings to be enabled

Is possible make macros that run server-side? | QlikView Help, Tips & Hints

marcus_sommer

Did you set the security which Mayil Vahanan Ramasamy mentioned?

- Marcus

Not applicable
Author

Yes

marcus_sommer

The server needs also security settings within in QEMC:

Besides: with an AJAX-Client it won't work.

- Marcus

Not applicable
Author

Thanks and it is not checked Allow unsafe macro execution on server in QEMC and I have AJAX-Client.

But with AJAX-Client is there any other way to do this as I need to send chart data through excel to my user qutlook email.

marcus_sommer

You could try it with several linked actions triggered by pressing buttons:

1. actions --> extern --> export

2. actions --> extern --> launch program (mail-client, batch-file, ...)

It will be not easy ...

- Marcus

Not applicable
Author

Hi,

Could you help me how to do this please.