Command Button Query

From: Neil (me_at_home.com)
Date: 03/24/04


Date: Wed, 24 Mar 2004 21:59:45 +1100

Hi All,

I have prepared a rather large master presentation that I will open with a
menu screen that presents users with a command button.

I would like to have the caption on the command button change each time it
is pressed, ie. from 'Sales' to 'Marketing' to 'Engineering', the macro
reading the current state of the button (caption) and hiding slides that are
not relevant to the department the user has selected.

I have done this before using Visual Basic in Excel though I'm not sure of
the syntax for Powerpoint.

My macro will run something like:

Make all sheets visible,
If button.caption = 'Sales',
hide slides 2,3,4 and 9 then
button.caption = "Marketing'

Elseif button.caption = 'Marketing',
make all sheets visible, hide slides 2,7,11 then
button.caption = 'Engineering'.......

Can you please assist with correct object identifiers for command buttons in
PowerPoint..

Thanks,

Neil



Relevant Pages

  • Re: Insert Slides from Files Macro
    ... > I want to create a macro to insert slides from another presentation - but ... > cannot find a VB command to do this. ... > of slides, which then get imported into the active presentation. ... Steve Rindsberg, PPT MVP ...
    (microsoft.public.powerpoint)
  • Insert Slides from Files Macro
    ... I want to create a macro to insert slides from another presentation - but ... cannot find a VB command to do this. ... of slides, which then get imported into the active presentation. ...
    (microsoft.public.powerpoint)
  • Re: Display New Document task pane
    ... Well, since you have assigned a macro to the command whose ID is 18, it ... I do acknowledge that the .Execute command works whether the commandbar is ... button and still have the New Document task pane show: ... create a new toolbar called Hidden. ...
    (microsoft.public.word.vba.general)
  • Re: Display New Document task pane
    ... that custom macro will run when you execute that command. ... button and still have the New Document task pane show: ... create a new toolbar called Hidden. ...
    (microsoft.public.word.vba.general)
  • Re: Insert File not working
    ... Go to Tools | Macro | Macros and see if there is an InsertFile macro listed ... is the window opening behind your document? ... "Debutante" wrote in message ... then the command isn't working at all. ...
    (microsoft.public.word.newusers)