Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / General PowerPoint Questions / September 2006

Tip: Looking for answers? Try searching our database.

Command buttons

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Jeff - 27 Sep 2006 16:29 GMT
I'm looking for some help with a bit of vb code.

I'm have a text box on a slide to allow users to type in the box.  There is
also a command button that looks at the contents of the box and goes to the
appropriate slide.   I have listed the vb code below

Private Sub CommandButton1_Click()
   
   With Slide1
       If UCase(TextBox1.Text) = "TEST" Then
           MsgBox "You typed TEST.  I should now go to slide 3"
           With SlideShowWindows(1).View
               .GotoSlide 3, msoTrue
           End With
       Else
           MsgBox "You typed something else.  I should now go to slide 2"
           With SlideShowWindows(1).View
               .GotoSlide 2, msoTrue
           End With
       End If
   End With

End Sub

All works well until I exit PowerPoint.  When I open the presentation again
the button doesn't work.  If I copy the code to a new presentation it works
fine until I exit.

I'm obviously missing something.  Any help greatly appreciated.
John Wilson - 27 Sep 2006 16:46 GMT
What level is your macro security set to?

"High" and the code wont run.
Signature


Did that answer the question / help?
_____________________________
John Wilson
Microsoft Certified Office Specialist
http://www.technologytrish.co.uk/ppttipshome.html

> I'm looking for some help with a bit of vb code.
>
[quoted text clipped - 25 lines]
>
> I'm obviously missing something.  Any help greatly appreciated.
Jeff - 27 Sep 2006 16:51 GMT
I've set the macro security all the way down to low and it doesn't seem to
make any difference

> What level is your macro security set to?
>
[quoted text clipped - 29 lines]
> >
> > I'm obviously missing something.  Any help greatly appreciated.
David M. Marcovitz - 27 Sep 2006 17:01 GMT
After setting it to Low, close PowerPoint and then try. Once the
presentation is opened, its fate with macro security is set until it is
opened again so changing while the presentation is open won't make any
difference this time, but it should help for next time you open it.
--David

Signature

David M. Marcovitz
Microsoft PowerPoint MVP
Director of Graduate Programs in Educational Technology
Loyola College in Maryland
Author of _Powerful PowerPoint for Educators_
http://www.PowerfulPowerPoint.com/

> I've set the macro security all the way down to low and it doesn't
> seem to make any difference
[quoted text clipped - 33 lines]
>> >
>> > I'm obviously missing something.  Any help greatly appreciated.
Jeff - 29 Sep 2006 15:43 GMT
Thanks to David and John.  All working fine now.

> After setting it to Low, close PowerPoint and then try. Once the
> presentation is opened, its fate with macro security is set until it is
[quoted text clipped - 39 lines]
> >> >
> >> > I'm obviously missing something.  Any help greatly appreciated.

Rate this thread:






 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.