PC Review


Reply
Thread Tools Rate Thread

Display 'read only' dialog (vba)

 
 
kimkom
Guest
Posts: n/a
 
      25th Nov 2008
Hi all,

Can someone please tell me how to display a dialog if a pps is currently in
'read only' mode?

For instance:
Pressing an Enter button on the opening slide of a presentation runs a macro
which checks if it's currently in 'read only' mode and if so displays a
MsgBox or certain slide.

Many thanks,
Michael
 
Reply With Quote
 
 
 
 
Michael Koerner
Guest
Posts: n/a
 
      25th Nov 2008
Which version of PowerPoint are you using? You can password protect some
versions of PowerPoint. Normally the enter key is used to transaction form
one slide to the next

--
Michael Koerner
MS MVP - PowerPoint


"kimkom" <(E-Mail Removed)> wrote in message
news:B4732049-3B9E-4346-B067-(E-Mail Removed)...
Hi all,

Can someone please tell me how to display a dialog if a pps is currently in
'read only' mode?

For instance:
Pressing an Enter button on the opening slide of a presentation runs a macro
which checks if it's currently in 'read only' mode and if so displays a
MsgBox or certain slide.

Many thanks,
Michael


 
Reply With Quote
 
Austin Myers
Guest
Posts: n/a
 
      25th Nov 2008
With Application.ActivePresentation
If .ReadOnly Then
Msgbox "This file is opened in read only mode."
End With


Austin Myers


Creators of PFCMedia and PFCPro


"kimkom" <(E-Mail Removed)> wrote in message
news:B4732049-3B9E-4346-B067-(E-Mail Removed)...
> Hi all,
>
> Can someone please tell me how to display a dialog if a pps is currently
> in
> 'read only' mode?
>
> For instance:
> Pressing an Enter button on the opening slide of a presentation runs a
> macro
> which checks if it's currently in 'read only' mode and if so displays a
> MsgBox or certain slide.
>
> Many thanks,
> Michael



 
Reply With Quote
 
kimkom
Guest
Posts: n/a
 
      26th Nov 2008
Thanks.

Michael, I'm using 2007 but the end user is on 2003.

Austin, thanks for that I'll give it a try.

Steve, I'll try! ;-)

Michael

"Steve Rindsberg" wrote:

> In article <B4732049-3B9E-4346-B067-(E-Mail Removed)>, Kimkom wrote:
> > Hi all,
> >
> > Can someone please tell me how to display a dialog if a pps is currently in
> > 'read only' mode?

>
> I'm old, grouchy and jealous of what little sanity I have left. Please help me
> preserve it by keeping this in one thread. Thanks. ;-)
>
>
>

 
Reply With Quote
 
kimkom
Guest
Posts: n/a
 
      26th Nov 2008
Austin,

I have tried applying the code to a button with no effect after changing the
read only state i.e.:

Sub ReadOnlyTest()
With Application.ActivePresentation
If .ReadOnly Then
Msgbox "This file is opened in read only mode."
End With
End Sub

I've also tried:

Sub ReadOnlyTest()
If ActivePresentation.ReadOnly = msoTrue Then
MsgBox "Read Only"
End If
End Sub


Any suggestions please?


Background info:

It is my intention to use this to check to determine whether another user on
a shared network currently has the same presentation open i.e. UserA clicks a
hyperlink to open the file, UserB then opens the same file but in read only
format. Pressing an 'Enter' button on the opening slide then runs the
ReadOnlyTest() Sub.

Is this possible? Am I going about this the correct way?

Thanks,
Michael

"Austin Myers" wrote:

> With Application.ActivePresentation
> If .ReadOnly Then
> Msgbox "This file is opened in read only mode."
> End With
>
>
> Austin Myers
>
>
> Creators of PFCMedia and PFCPro
>
>
> "kimkom" <(E-Mail Removed)> wrote in message
> news:B4732049-3B9E-4346-B067-(E-Mail Removed)...
> > Hi all,
> >
> > Can someone please tell me how to display a dialog if a pps is currently
> > in
> > 'read only' mode?
> >
> > For instance:
> > Pressing an Enter button on the opening slide of a presentation runs a
> > macro
> > which checks if it's currently in 'read only' mode and if so displays a
> > MsgBox or certain slide.
> >
> > Many thanks,
> > Michael

>
>
>

 
Reply With Quote
 
kimkom
Guest
Posts: n/a
 
      26th Nov 2008
Apologies Austin,

I should check my own code more carefully! There was an error in another
part of my code, your code works fine.

Thank you
Michael

"Austin Myers" wrote:

> With Application.ActivePresentation
> If .ReadOnly Then
> Msgbox "This file is opened in read only mode."
> End With
>
>
> Austin Myers
>
>
> Creators of PFCMedia and PFCPro
>
>
> "kimkom" <(E-Mail Removed)> wrote in message
> news:B4732049-3B9E-4346-B067-(E-Mail Removed)...
> > Hi all,
> >
> > Can someone please tell me how to display a dialog if a pps is currently
> > in
> > 'read only' mode?
> >
> > For instance:
> > Pressing an Enter button on the opening slide of a presentation runs a
> > macro
> > which checks if it's currently in 'read only' mode and if so displays a
> > MsgBox or certain slide.
> >
> > Many thanks,
> > Michael

>
>
>

 
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
How to display a variable value in a dialog box and how to read user input? Tony Bansten Microsoft VB .NET 1 21st Jun 2008 06:44 AM
Read/Not Read display in the Outlook 2007 Inbox densara Microsoft Outlook Discussion 3 23rd Feb 2008 10:44 AM
Display Dialog Box Thom Little Microsoft Dot NET Framework Forms 0 26th Aug 2006 11:13 PM
closing read-only without save dialog box appearing =?Utf-8?B?Sk5X?= Microsoft Excel Programming 0 28th Dec 2005 03:14 PM
Read Receipt Dialog box + delete notifications =?Utf-8?B?d29ybmVy?= Microsoft Outlook Discussion 0 3rd Mar 2005 04:59 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:12 PM.