Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
epr epr is offline
external usenet poster
 
Posts: 4
Default annoying pop up windows

i am dealing with large number of files, basically, open the file, collect
some fields, then close it.

this process should go unattented, however, some of the files is causing
trouble for me:

1. the file has some links and always pop up a window asking me to
'continue' or 'update'.

this causes my process to stop till i click on ' continue'.

how can i programmingly do this?

i use C# and this happens right after i call workbook.open().

thanks.

--
epr
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,939
Default annoying pop up windows

One of the optional prameteres of the Open method is UpdateLinks:=True /
False. if you specify this parameter then the question will not be asked...
--
HTH...

Jim Thomlinson


"epr" wrote:

i am dealing with large number of files, basically, open the file, collect
some fields, then close it.

this process should go unattented, however, some of the files is causing
trouble for me:

1. the file has some links and always pop up a window asking me to
'continue' or 'update'.

this causes my process to stop till i click on ' continue'.

how can i programmingly do this?

i use C# and this happens right after i call workbook.open().

thanks.

--
epr

  #3   Report Post  
Posted to microsoft.public.excel.programming
epr epr is offline
external usenet poster
 
Posts: 4
Default annoying pop up windows

thank you Jim.

but i had everything set to false.

also, how do bypass ones that has password protection? there was a very
small amount of files and i don't have the real pwd, so i want to just click
'cancel' and move on.


--
epr


"Jim Thomlinson" wrote:

One of the optional prameteres of the Open method is UpdateLinks:=True /
False. if you specify this parameter then the question will not be asked...
--
HTH...

Jim Thomlinson


"epr" wrote:

i am dealing with large number of files, basically, open the file, collect
some fields, then close it.

this process should go unattented, however, some of the files is causing
trouble for me:

1. the file has some links and always pop up a window asking me to
'continue' or 'update'.

this causes my process to stop till i click on ' continue'.

how can i programmingly do this?

i use C# and this happens right after i call workbook.open().

thanks.

--
epr

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 360
Default annoying pop up windows

You can try opening it with a dummy password and use that error to
tell your code to skip the file and continue:

Sub way()
On Error GoTo errHandler
Workbooks.Open fileName:="C:\somefile.xls", Password:="pw"
Exit Sub
errHandler:
If Left(Err.Description, 12) = "The password" Then
Resume Next
Else
MsgBox Err.Description
End If
End Sub

Cliff Edwards
  #5   Report Post  
Posted to microsoft.public.excel.programming
epr epr is offline
external usenet poster
 
Posts: 4
Default annoying pop up windows

very cool. both worked.

thanks guys.


--
epr


"ward376" wrote:

You can try opening it with a dummy password and use that error to
tell your code to skip the file and continue:

Sub way()
On Error GoTo errHandler
Workbooks.Open fileName:="C:\somefile.xls", Password:="pw"
Exit Sub
errHandler:
If Left(Err.Description, 12) = "The password" Then
Resume Next
Else
MsgBox Err.Description
End If
End Sub

Cliff Edwards

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
cannot open exel from windows xp in windows vista and visa versa lildiana New Users to Excel 4 February 25th 09 07:26 PM
can windows vista edit shared document from windows xp sasa Excel Worksheet Functions 1 January 9th 08 06:44 PM
Embedded status lines should eliminate annoying popup "OK"windows Aaron Kosar Setting up and Configuration of Excel 0 February 22nd 06 02:45 PM
Annoying pop up Sam Excel Discussion (Misc queries) 2 July 15th 05 02:08 PM
Annoying bug. Shunt Excel Programming 1 August 7th 03 02:05 PM


All times are GMT +1. The time now is 05:10 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"