Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default Disable Poups

Hi All,

I have a function which I am opening using the ShellExecute method to
Print. I have two issues in doing the same.

1. For password protected files, I am not able to catch the password
protected errors when I enter the wrong password. How do I catch the
error with the above statement?
2. After the file has been printed, since I am using Excel 2007 and
the source files are Excel 2003 - it prompts me asking if I want the
file to be saved. I do not want to save the file always.
Application.DisplayAlerts = False does not work. How do i disable the
save dialog?

Any ideas?

Thanks in advance,
Haarish.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 703
Default Disable Poups

Hi,

2. Set the saved property True after the file has been printed.

ActiveWorkbook.Saved = True

Regards,
Per

On 31 Aug., 13:24, Haarish wrote:
Hi All,

I have a function which I am opening using the ShellExecute method to
Print. I have two issues in doing the same.

1. For password protected files, I am not able to catch the password
protected errors when I enter the wrong password. How do I catch the
error with the above statement?
2. After the file has been printed, since I am using Excel 2007 and
the source files are Excel 2003 - it prompts me asking if I want the
file to be saved. I do not want to save the file always.
Application.DisplayAlerts = False does not work. How do i disable the
save dialog?

Any ideas?

Thanks in advance,
Haarish.


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
Disable ALT+F11 LiAD Excel Programming 8 April 27th 09 10:14 AM
Disable alt+tab Ozgur Pars[_2_] Excel Programming 2 October 12th 06 06:04 AM
Disable Alt+F11 Bob Excel Discussion (Misc queries) 3 April 27th 06 10:05 PM
disable F1 12505-5B Excel Discussion (Misc queries) 1 February 16th 05 08:03 PM
disable F1 after F2 Dw70 Excel Programming 1 January 30th 05 04:58 PM


All times are GMT +1. The time now is 02:23 AM.

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"