Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 586
Default Skip Read Only MsgBox with Save As

I have a workbook that is protected, which forces users to open it in Read
Only if they do not have the password. When the user clicks on Save a
Message Box pops up saying "Workbook is Read Only. To Save a copy, Click OK,
then give the workbook a new name in the Save As Dialog Box." Is there a way
to skip the message box and go straight to the Save As Dialog Box?

Thanks in Advance,
Ryan
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27
Default Skip Read Only MsgBox with Save As

In the Thisworkbook module, make a Workbook_BeforeClose sub
and insert
If ThisWorkbook.ReadOnly Then Thisworkbook.saved=True
--
Regards

Jean-Yves Tfelt
Europe


"RyanH" wrote:

I have a workbook that is protected, which forces users to open it in Read
Only if they do not have the password. When the user clicks on Save a
Message Box pops up saying "Workbook is Read Only. To Save a copy, Click OK,
then give the workbook a new name in the Save As Dialog Box." Is there a way
to skip the message box and go straight to the Save As Dialog Box?

Thanks in Advance,
Ryan

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 586
Default Skip Read Only MsgBox with Save As

Message still pops up. Any other ideas?

Thanks
Ryan

"Jean-Yves" wrote:

In the Thisworkbook module, make a Workbook_BeforeClose sub
and insert
If ThisWorkbook.ReadOnly Then Thisworkbook.saved=True
--
Regards

Jean-Yves Tfelt
Europe


"RyanH" wrote:

I have a workbook that is protected, which forces users to open it in Read
Only if they do not have the password. When the user clicks on Save a
Message Box pops up saying "Workbook is Read Only. To Save a copy, Click OK,
then give the workbook a new name in the Save As Dialog Box." Is there a way
to skip the message box and go straight to the Save As Dialog Box?

Thanks in Advance,
Ryan

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default Skip Read Only MsgBox with Save As

You could tell the users to stop using that button (or file|SaveAs, or ctrl-s)
and give them a way to run a macro that avoids that prompt.

Option Explicit
Sub Testme01()
Application.Dialogs(xlDialogSaveAs).Show
End Sub


RyanH wrote:

I have a workbook that is protected, which forces users to open it in Read
Only if they do not have the password. When the user clicks on Save a
Message Box pops up saying "Workbook is Read Only. To Save a copy, Click OK,
then give the workbook a new name in the Save As Dialog Box." Is there a way
to skip the message box and go straight to the Save As Dialog Box?

Thanks in Advance,
Ryan


--

Dave Peterson
  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 586
Default Skip Read Only MsgBox with Save As

So I guess there is not a way to skip the Save As Dialog box?

Ryan

"Dave Peterson" wrote:

You could tell the users to stop using that button (or file|SaveAs, or ctrl-s)
and give them a way to run a macro that avoids that prompt.

Option Explicit
Sub Testme01()
Application.Dialogs(xlDialogSaveAs).Show
End Sub


RyanH wrote:

I have a workbook that is protected, which forces users to open it in Read
Only if they do not have the password. When the user clicks on Save a
Message Box pops up saying "Workbook is Read Only. To Save a copy, Click OK,
then give the workbook a new name in the Save As Dialog Box." Is there a way
to skip the message box and go straight to the Save As Dialog Box?

Thanks in Advance,
Ryan


--

Dave Peterson



  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default Skip Read Only MsgBox with Save As

You could use a macro.

RyanH wrote:

So I guess there is not a way to skip the Save As Dialog box?

Ryan

"Dave Peterson" wrote:

You could tell the users to stop using that button (or file|SaveAs, or ctrl-s)
and give them a way to run a macro that avoids that prompt.

Option Explicit
Sub Testme01()
Application.Dialogs(xlDialogSaveAs).Show
End Sub


RyanH wrote:

I have a workbook that is protected, which forces users to open it in Read
Only if they do not have the password. When the user clicks on Save a
Message Box pops up saying "Workbook is Read Only. To Save a copy, Click OK,
then give the workbook a new name in the Save As Dialog Box." Is there a way
to skip the message box and go straight to the Save As Dialog Box?

Thanks in Advance,
Ryan


--

Dave Peterson


--

Dave Peterson
  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,593
Default Skip Read Only MsgBox with Save As

I don't think so, it seems to kick in before any event fires.

--
---
HTH

Bob


(there's no email, no snail mail, but somewhere should be gmail in my addy)



"RyanH" wrote in message
...
So I guess there is not a way to skip the Save As Dialog box?

Ryan

"Dave Peterson" wrote:

You could tell the users to stop using that button (or file|SaveAs, or
ctrl-s)
and give them a way to run a macro that avoids that prompt.

Option Explicit
Sub Testme01()
Application.Dialogs(xlDialogSaveAs).Show
End Sub


RyanH wrote:

I have a workbook that is protected, which forces users to open it in
Read
Only if they do not have the password. When the user clicks on Save a
Message Box pops up saying "Workbook is Read Only. To Save a copy,
Click OK,
then give the workbook a new name in the Save As Dialog Box." Is there
a way
to skip the message box and go straight to the Save As Dialog Box?

Thanks in Advance,
Ryan


--

Dave Peterson



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
My program read the wrong msgbox anamarie30 Excel Programming 3 July 11th 07 05:48 PM
Skip Read-only message CV323 Excel Programming 2 April 18th 07 07:49 PM
How to skip save prompt ask me if I want to replace File. Viviana Excel Programming 1 August 16th 06 03:45 AM
MsgBox To Read A Value of a cell Rob Excel Programming 2 September 7th 05 01:27 PM
Msgbox saying "Unable to read file" lashio Excel Discussion (Misc queries) 3 May 30th 05 07:59 PM


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