Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.dotnet.languages.vb,microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Process excel files, suppress alerts

Dear all,

I have a .NET app that processes some excel file and it was working in all
scenarios.

Recently however we received excel files from a new client which my
application has been unable to process. The problem is that this file has
external links and when you open the excel file, it prompts you to either
update linked information or keep exisiting information.

Since my application runs in a non UI mode, there is no way for me to
respond to this request. I have tried suppressing these message boxes but
have been unable to do so.

I have tried the following to no avail

oExcel.Visible = False
oExcel.AlertBeforeOverwriting = False
oExcel.DisplayAlerts = False

I will be greatful for any pointers in this regard.

Many thanks,

--
Wazir



  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8
Default Process excel files, suppress alerts

Wazir
Update links is an argument of the workbooks.open method.
I generally open stuff without updating links and readonly:
workbooks.open "wbname", false, true
(if you are using vb.net you can use named arguments)
You may want to turn macros off too (Only available in XP
or better)
Cheers
Simon

-----Original Message-----
Dear all,

I have a .NET app that processes some excel file and it

was working in all
scenarios.

Recently however we received excel files from a new

client which my
application has been unable to process. The problem is

that this file has
external links and when you open the excel file, it

prompts you to either
update linked information or keep exisiting information.

Since my application runs in a non UI mode, there is no

way for me to
respond to this request. I have tried suppressing these

message boxes but
have been unable to do so.

I have tried the following to no avail

oExcel.Visible = False
oExcel.AlertBeforeOverwriting = False
oExcel.DisplayAlerts = False

I will be greatful for any pointers in this regard.

Many thanks,

--
Wazir



.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Process excel files, suppress alerts

Many thanks Simon. I set the UpdateLinks property to false and it worked
without any problem.

Kind regards

--
Wazir



"Simon Murphy" wrote in message
...
Wazir
Update links is an argument of the workbooks.open method.
I generally open stuff without updating links and readonly:
workbooks.open "wbname", false, true
(if you are using vb.net you can use named arguments)
You may want to turn macros off too (Only available in XP
or better)
Cheers
Simon

-----Original Message-----
Dear all,

I have a .NET app that processes some excel file and it

was working in all
scenarios.

Recently however we received excel files from a new

client which my
application has been unable to process. The problem is

that this file has
external links and when you open the excel file, it

prompts you to either
update linked information or keep exisiting information.

Since my application runs in a non UI mode, there is no

way for me to
respond to this request. I have tried suppressing these

message boxes but
have been unable to do so.

I have tried the following to no avail

oExcel.Visible = False
oExcel.AlertBeforeOverwriting = False
oExcel.DisplayAlerts = False

I will be greatful for any pointers in this regard.

Many thanks,

--
Wazir



.



  #4   Report Post  
Posted to microsoft.public.dotnet.languages.vb,microsoft.public.excel.programming
external usenet poster
 
Posts: 8
Default Process excel files, suppress alerts

Recently however we received excel files from a new client which my
application has been unable to process. The problem is that this file has
external links and when you open the excel file, it prompts you to either
update linked information or keep exisiting information.


Try

xlsdoc.Application.DisplayAlerts = False

to address the sheet within the application.



  #5   Report Post  
Posted to microsoft.public.dotnet.languages.vb,microsoft.public.excel.programming
external usenet poster
 
Posts: 8
Default Process excel files, suppress alerts

Recently however we received excel files from a new client which my
application has been unable to process. The problem is that this file has
external links and when you open the excel file, it prompts you to either
update linked information or keep exisiting information.



Please send a sample of this file I can work with to



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Automatic alerts in excel PK Excel Discussion (Misc queries) 3 April 26th 08 04:57 PM
How Excel VBA corporate with MSN Alerts? jazzcarr Excel Discussion (Misc queries) 0 January 1st 08 12:37 PM
Settings for pop up alerts in excel Victor Excel Discussion (Misc queries) 2 July 27th 07 08:52 PM
how do i set up sound alerts on excel? Anuj Dhamija Excel Discussion (Misc queries) 1 May 19th 06 02:26 PM
Suppress protection alerts in Excel Yohanne the Great Excel Discussion (Misc queries) 5 March 5th 06 10:06 PM


All times are GMT +1. The time now is 09:48 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"