PC Review


Reply
Thread Tools Rate Thread

Disable Macro on real only option

 
 
Renato8
Guest
Posts: n/a
 
      28th Apr 2006

Hi, I want to know how can I disable a macro if the workbook is open in
read only option, because I dont want that someone execute a macro that
changes cant be save after.


Thanks

Renato


--
Renato8
------------------------------------------------------------------------
Renato8's Profile: http://www.excelforum.com/member.php...o&userid=30604
View this thread: http://www.excelforum.com/showthread...hreadid=537275

 
Reply With Quote
 
 
 
 
=?Utf-8?B?VG9tIE9naWx2eQ==?=
Guest
Posts: n/a
 
      28th Apr 2006
easier might be to have your macro check the status and just quit if the
workbook is read only.

if activeworkbook.ReadOnly then exit sub

or if the macro is in the workbook

if thisworkbook.ReadOnly then exit sub

--
Regards,
Tom Ogilvy


"Renato8" wrote:

>
> Hi, I want to know how can I disable a macro if the workbook is open in
> read only option, because I dont want that someone execute a macro that
> changes cant be save after.
>
>
> Thanks
>
> Renato
>
>
> --
> Renato8
> ------------------------------------------------------------------------
> Renato8's Profile: http://www.excelforum.com/member.php...o&userid=30604
> View this thread: http://www.excelforum.com/showthread...hreadid=537275
>
>

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Macro to disable Refresh Data option? Sarah (OGI) Microsoft Excel Programming 1 29th May 2008 02:40 PM
Real Time Protection needs Always Allow Option =?Utf-8?B?Sm9obg==?= Spyware Discussion 1 17th May 2006 06:15 PM
disable Real One ! confused mom Windows XP New Users 1 18th Sep 2004 10:29 PM
disable Real One Networks confused mom Windows XP New Users 2 18th Sep 2004 08:43 PM
Disable Macro Option Pete Microsoft Excel Programming 2 14th Apr 2004 09:14 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:45 AM.