Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Disable Excel Macro
Date: Wed, 7 Jan 2009 11:29:02 +0000 (UTC)
Organization: Atlantic Inertial Systems Ltd
Lines: 15
Message-ID: <gk23lu$mdk$1@fred.mathworks.com>
References: <gjv9nq$1v8$1@fred.mathworks.com> <gjvata$otq$1@fred.mathworks.com> <266b8f39-1e44-42bb-b0af-b5de1ac25259@z27g2000prd.googlegroups.com> <gjvtdt$rmv$1@fred.mathworks.com> <gk1ot1$3t5$1@fred.mathworks.com> <gk1q82$o4c$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-02-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1231327742 22964 172.30.248.37 (7 Jan 2009 11:29:02 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Wed, 7 Jan 2009 11:29:02 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1460496
Xref: news.mathworks.com comp.soft-sys.matlab:510202


Thank you for your message.

I tried making my own version of xlsread.

I tried lots of different variations of 'EnableEvents=False' before and after the open command (line 250 in xlsread)

Excel.Application.EnableEvents(false)
Excel.workbook.Application.EnableEvents(false)
Excel.EnableEvents(false)

etc, but the macro still appeared!

Thanks again,

Alex