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

Announcements
Only at Qlik Connect! Guest keynote Jesse Cole shares his secrets for daring to be different. Learn More!
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.

1 Solution

Accepted Solutions
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

View solution in original post

37 Replies
MayilVahanan

Hi

May be the EmailAddress variable is not available.
Please check once.

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.
Not applicable
Author

Thanks and I set EmailAddress variable. now it's showing

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

Any Example would help.

MayilVahanan

HI

Quick Question:

In your machine, excel installed?

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.
Not applicable
Author

Yes Excel 2010

MayilVahanan

Hi

Please refer this

Re: Exporting to multiple Tabs of the same Excel file

Output Multiple Pivots to Excel

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.
Not applicable
Author

Thanks still showing the same error as ActiveX component can't create object: 'Excel.Application'
Any help lease.

CELAMBARASAN
Partner - Champion
Partner - Champion

Is your excel is licensed one? or starter pack?

I hope Excel.Application wont work in starter pack.

Not applicable
Author

Hi,

How can I know whether is it licenced or starter pack? and also I am trying to write macro on qlikview personal edition before implementing in server.

CELAMBARASAN
Partner - Champion
Partner - Champion

on opening itself it will show Excel Starter 2010.