Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default How to prevent a VB dialogue box appear

I have an
on Error go to Handler
xxxx
exit sub
Handler:
msgbox "Database not available"
end sub
It works but a Microsoft Visual Basic dialogue box opens with Run-time error
3709
I don't want that to happen. What am I doing wrong?
Gunilla G

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 772
Default How to prevent a VB dialogue box appear

Hard to tell without code (for me anyway) try one of these before error and
turn back on after handling
application.DisplayAlerts=False
--
-John
Please rate when your question is answered to help us and others know what
is helpful.


"Gunilla G" wrote:

I have an
on Error go to Handler
xxxx
exit sub
Handler:
msgbox "Database not available"
end sub
It works but a Microsoft Visual Basic dialogue box opens with Run-time error
3709
I don't want that to happen. What am I doing wrong?
Gunilla G

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default How to prevent a VB dialogue box appear

In the vbe go to tools=Options and under the General tab make sure you have
something other than Break on All Errors selected.

--
Regards,
Tom Ogilvy


"Gunilla G" wrote:

I have an
on Error go to Handler
xxxx
exit sub
Handler:
msgbox "Database not available"
end sub
It works but a Microsoft Visual Basic dialogue box opens with Run-time error
3709
I don't want that to happen. What am I doing wrong?
Gunilla G

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default How to prevent a VB dialogue box appear

The code is to open up an Access database. Sometimes the access to the server
is down and the error message will tell the user that the path can not be
found and ther is a button for END and one for DEBUG. Instead I want my
msgbox "Database..." show. It works fine but the VB Dialogue box opens up
and it did not work with Application.DisplayAlerts=False. Is there a way to
just enable just the END button? That would work too. I am working in Excel
2000.

"John Bundy" wrote:

Hard to tell without code (for me anyway) try one of these before error and
turn back on after handling
application.DisplayAlerts=False
--
-John
Please rate when your question is answered to help us and others know what
is helpful.


"Gunilla G" wrote:

I have an
on Error go to Handler
xxxx
exit sub
Handler:
msgbox "Database not available"
end sub
It works but a Microsoft Visual Basic dialogue box opens with Run-time error
3709
I don't want that to happen. What am I doing wrong?
Gunilla G

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default How to prevent a VB dialogue box appear

Breake on Unhandle errors is checked.
Thanks Gunilla

"Tom Ogilvy" wrote:

In the vbe go to tools=Options and under the General tab make sure you have
something other than Break on All Errors selected.

--
Regards,
Tom Ogilvy


"Gunilla G" wrote:

I have an
on Error go to Handler
xxxx
exit sub
Handler:
msgbox "Database not available"
end sub
It works but a Microsoft Visual Basic dialogue box opens with Run-time error
3709
I don't want that to happen. What am I doing wrong?
Gunilla G

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
Prevent dialogue: "save changes"? [email protected] New Users to Excel 4 May 16th 10 05:34 PM
Dialogue Box Flat disgusted Excel Discussion (Misc queries) 2 May 20th 08 06:46 PM
HOW CAN I PREVENT EXCEL FILES FROM BEING DELETED OR PREVENT TRASH ROB Excel Discussion (Misc queries) 2 April 2nd 07 01:13 PM
pop up dialogue box Micayla Bergen New Users to Excel 1 June 23rd 06 02:34 AM
pop up dialogue Micayla Bergen Excel Discussion (Misc queries) 0 June 23rd 06 02:22 AM


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