View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
will lam will lam is offline
external usenet poster
 
Posts: 4
Default application.displayalerts is not working

hi

i got a VBA prog. to open excel. but, when the prog. open excel spreadsheet, there is an error. "Can't open pivot table soubrce file..." so, i tried to supress the error message via the code. but, VB stops at the Open() statement, and wait for me to respond to the message before it continues. and, i really want VB ignores the error, and continues

Application.DisplayAlerts = wdAlertsNon

TempFileString = sfilePath & "\" & TempFileStrin
Set owb = oXL.Workbooks.Open(FileName:=TempFileString, UpdateLinks:=False, ReadOnly:=False, ignoreReadOnlyRecommended:=True

Application.DisplayAlerts = wdAlertsAl

does anyone has any idea on how to resolve this problem

thank a lot

will :O