Disabling Excel warning from VBA

  • Thread starter Sylvain Provencher
  • Start date
S

Sylvain Provencher

I do replace operation in an Excel sheet via Access. When string doesn'y
exist, I got a Warning. I want to disable it (not receiving it). There is a
way ?

I tried to do a find first, but find don't look in first cell of the
sheet... any ideas ?
sylvain
 
J

Jonathan Parminter

sylvain said:
-----Original Message-----
I do replace operation in an Excel sheet via Access. When string doesn'y
exist, I got a Warning. I want to disable it (not receiving it). There is a
way ?

I tried to do a find first, but find don't look in first cell of the
sheet... any ideas ?
sylvain

Hi Sylvain,

try

dim xlApp as excel.application

set xlApp = new excel.application
xlApp.displayalerts = false

p.s. you may be more successful posting questions
regarding excel to the excel usergroup.

Luck
Jonathan
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top