LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 50
Default Exit Sub when File Open Dialogbox is cancelled

Hi,

This should be fairly simple for a lot of you but I am struggling with
it. I have a macro that opens up a dialog box to allow users open the
input data file to be processed using macro. Many a times users click
cancel instead of opening the file and in that case I get a run time
error.

What is want is when the users cancel it should just give them a
message and macro should end while if they opened the input file then
the rest of the macro should run.
Can someone help me with this? Thanks.

- AG
 
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
Excel 2007 macro: Dialogbox for saving a file as type Microsoft Ex Guus Excel Programming 4 April 8th 09 11:15 AM
Open the SaveAs Dialogbox vqthomf Excel Programming 2 December 16th 08 03:18 PM
Excel remaining open on workbook exit [email protected] Excel Programming 3 August 30th 07 01:19 PM
Open DialogBox in VBA schoujar[_16_] Excel Programming 5 November 4th 05 03:36 AM
how to detect if user has a dialogbox open Von Shean Excel Programming 2 January 12th 04 02:35 PM


All times are GMT +1. The time now is 06:38 AM.

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

About Us

"It's about Microsoft Excel"