Excel Interaction

L

levimefford

Alright, so I've got a pretty hefty program that is integrating with
excel. My problem is that I'm wanting to avoid a particular dialog
from appearing, just because the portion that it pertains to is
automated. Basically, this has to deal with the .merge function for a
range of cells in excel. It basically asks if I want to continue to
merge the cells since the data from the upper left will be the only
data used. I'm not sure why it asks this, though, considering the
worksheet has no data on it, unless it (for some reason unknown to me)
is trying to apply the changes retrospectively to previously created
worksheets and then overriding that data in my newly created
worksheet.

What I wanna know is how to make it automatically accept those changes.
 
J

Jan Hyde (VB MVP)

"(e-mail address removed)" <[email protected]>'s wild
thoughts were released on Tue, 16 Oct 2007 04:56:49 -0000
bearing the following fruit:
Alright, so I've got a pretty hefty program that is integrating with
excel. My problem is that I'm wanting to avoid a particular dialog
from appearing, just because the portion that it pertains to is
automated. Basically, this has to deal with the .merge function for a
range of cells in excel. It basically asks if I want to continue to
merge the cells since the data from the upper left will be the only
data used. I'm not sure why it asks this, though, considering the
worksheet has no data on it, unless it (for some reason unknown to me)
is trying to apply the changes retrospectively to previously created
worksheets and then overriding that data in my newly created
worksheet.

What I wanna know is how to make it automatically accept those changes.

Some methods allow you to pass flags that will prevent such
messages, I have no idea if that is the case here.

However you might try looking at the DisplayAlerts property.
 
R

Rad [Visual C# MVP]

"(e-mail address removed)" <[email protected]>'s wild
thoughts were released on Tue, 16 Oct 2007 04:56:49 -0000
bearing the following fruit:


Some methods allow you to pass flags that will prevent such
messages, I have no idea if that is the case here.

However you might try looking at the DisplayAlerts property.

You could also try sending keystrokes to the excel instance and see if
you can push the buttons that way
 

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