Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

powerpoint

Status
Not open for further replies.

mecca41

Technical User
Oct 17, 2007
2
US
can a drop down menu be created on powerpoint
 
Yes. I guess you want to know how. First, click View - Toolbars and select "Control Toolbox". From this menu, select the combobox icon and draw a combobox. Right click the combobox and select properties. Next to the Name option, give it a name. The following code will be an example of how to setup the combobox with values. To go to VBA, right click the combobox and select View Code.
This'll show how to setup three comboboxes Math, Reading, Writing. You can copy/paste the code and modify it.
Option Explicit

Private Sub Slide1_Activate()
DoDynamicChartSlide
End Sub

Public Sub DoDynamicChartSlide()
SetupCombo SlideShowWindows(1).Presentation.Slides(1).Shapes("Reading").OLEFormat.Object
SetupCombo SlideShowWindows(1).Presentation.Slides(1).Shapes("Writing").OLEFormat.Object
SetupCombo SlideShowWindows(1).Presentation.Slides(1).Shapes("Math").OLEFormat.Object
End Sub

Private Sub SetupCombo(cbo As ComboBox)
If cbo.ListCount = 0 Then
cbo.Clear
Dim idx As Integer
For idx = 1 To 100
cbo.AddItem CStr(idx)
Next
cbo.Text = "50"
End If
End Sub

Private Sub CommandButton1_Click()
DoDynamicChartSlide
End Sub

The last Sub is a reset button.
 
mecca41

see Animation Templates
A complete Animated Presentation Template with drop-down menu that allows you to jump to different slides. Be sure to read the 'READ ME' file first before modifying the content.


on this page



Cheers

TAJ Simmons
microsoft powerpoint mvp

awesome - powerpoint backgrounds
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top