We distribute PowerPoint slides to educators who teach our content. We don't want people to modify the slides in any way so I have protected the slideshow with a password that restricts editing. Educators select 'Read Only' when the password prompt appears. The problem is that don't have the ability to hide slides in Read Only mode. This is a requirement. Is there any way to do this? Maybe using a VB Macro?
Related
I am a beginner at VBA.
I am designing a somewhat interactive Powerpoint presentation/s. I want to be able to have three separate Powerpoint presentations open that will link together. I have been trying (without success) to create, in VBA, code which will change the current displayed slide on one Powerpoint file by clicking a button in another. I can hyperlink to the set slide but this causes this slide to pop up on the same screen in which it is clicked, despite it being already open in another screen (I don't want this).
Thanks in advance for any help,
Holly
VBA uses an object model that is a huge hierarchy of attributes and functions that represent the application. You can use this model to view and update attributes to get text, resize, and modify the application. You should look at some tutorials to get you started. When editing your code, you can press F2 to see and explore this object model. You can press F8 to run your code line by line (debug mode) and see what is happening.
To your question, you can access the open presentations in the application.presentations object (https://learn.microsoft.com/en-us/office/vba/api/powerpoint.presentations). You could then use a presentation in that list and use the ActiveWindow.View.goToSlide function (https://learn.microsoft.com/en-us/office/vba/api/powerpoint.view.gotoslide). Here is a free tutorial that I've used in my VBA journey (https://www.tutorialspoint.com/vba/index.htm).
PowerPoint has a Presentations collection that contains all currently open presentations. You can get a reference to any of them via Presentations("name") where "name" is the filename of the presentation, sans extension.
So ... assuming you've got three presentations open, a.pptx, b.pptx, c.pptx you can do something like this:
Sub SlideChange()
With Presentations("c")
.SlideShowWindow.View.GotoSlide (3)
End With
End Sub
If you run the above in any of the presentations, it will change the slide show window displaying presentation c to the third slide.
I have a .net website.
I need to disable the save as option from browser so that the user cant save some of the website pages in order to protect their content.I did disable right click.But user can select save as from browser's menu.
Is it possible to do that?
It is difficult to lock down a website by disabling the save button. What is to stop a user just copying the text and pasting to another document. Right clicking an image and saving. Then there are differences between browsers etc. If you need to protect you information you may need to look at creating and displaying PDFs but this is also not an easy thing especially if the site is dynamic.
What you want is impossible. If the user is able to read the information on his/her screen, there is always an option to copy the content.
How would you stop the user from taking a picture from his/her screen with a digital camera for example?
I have macros in my VbaProject.OTM file. A new toolbar is created when Outlook is launched to allow users to easily run the macros.
(sorry about the interface being in French ;-))
I would like users to be able to customize the toolbar by removing some of its buttons or adding them back. Here is the customization panel:
All my macros are there (all the public Sub()s in modules). However, the macro names and icons aren't really user friendly. I'm looking for a way to change both the icons and names. I'm actually using default FaceIds for my toolbar buttons (but I will add some custom icons in the future too). Also, if there would be a way for some public Sub()s to not me showed there, it would be perfect. Or to add a whole category instead of the Macros category.
When searching through the Web, all I can find is how to add toolbar buttons (which is already done in my example). Does anyone have any idea on how to edit the names/icons in the toolbar Customization panel? Is it possible?
I suggest built-in dialog boxes cannot be modified with VBA.
Try adding a permanent button "Add/delete buttons" to the toolbar, to launch a userform to choose the specific macros you want users to work with. You could then use a better name and other text to describe the macros in your own listbox.
I need to know how to disable the keyboard during the presentation because I don't really want people to skip around the PowerPoint but rather interact with it. I just want to disable the buttons that let's people move around slides such as the arrow keys and the space bar.
Here's an option that would mostly disable the keyboard, and disable built-in mouse navigation.
These instructions are for Powerpoint 2007 or 2010:
Go to the Slide Show tab.
Select Set Up Slide Show.
Under Show Type, select Browsed at Kiosk (full screen).
Hit OK.
Note:
Once the slideshow is started the only key that will do anything is Esc, which will end the show.
A standard mouse click will no longer advance slides, you will need to use VBA, Hyperlinks, or timers to advance slides.
For more information, here are instructions on creating and distributing a self-running PowerPoint presentation.
Where I work a department has created several theme files and quickstyle colours they want used in different circumstances.
I am wanting to create a macro that when run would save the theme automatically, and then assign a quickstyle colour group.
I have tried the macro recorder does not provide any hints as the macro is blank after attempting to record the actions, this is using either the mouse or keyboard. Searched everwhere and no solutions.
I can create the ribbon tab and buttons where we will call the macros from, I have already created macros and forms to populate documents with addresses etc.
But I cannot find any where I can set and save a theme or quick style and or colours.
A good idea for VBA is always to look into the Object Explorer in the IDE. Just press F2 while in the VBA Editor and type in the search field "theme".
There are the methods ActiveDocument.ApplyDocumentTheme(Filename as string) and ActiveDocument.ApplyTheme(Name as string). For quick styles you'll find also methods.
I don't have the time to test it, but I guess here you can go on.