PC Review


Reply
Thread Tools Rate Thread

Defining data source for a combobox in PPT

 
 
=?Utf-8?B?S2Vu?=
Guest
Posts: n/a
 
      3rd Oct 2005
OK... I'm confused.

I am trying to add a combox control to a ppt slide via the contols toolbar.

I am able to add the combobox. But now I want to populate the list.

I can't figure out how to do this. I know how to do this in excel (data
validation) and in Access (bind a data source table to the control). FOr
the life of me I can;t figure out how to do this simple thing in PPT combox
control.

Thanks!

KEn

I know how to do this in Access (bin
 
Reply With Quote
 
 
 
 
Brian Reilly, MVP
Guest
Posts: n/a
 
      3rd Oct 2005
Ken,
Yes, that is perplexing in PPT, isn't it?
Let me skip the Access comparison and just focus on the XL solution
and then let you figure it out for yourself (vbg)

The XL solution relies on a range either defined by cells or a range
name. We ain't got nuthin' like that in PPT. So whatcha gonna do?

The simplest hardcoded method (don't ever tell anyone I know the word
"hardcoded") is to just write the list in the VBE e.g.

Private Sub ComboBox1_DropButtonClick()
With ComboBox1
..AddItem "One"
..AddItem "two"
End With
End Sub

If you want it not hardcoded, I think you'd have to grab the values
from a list in XL (or elsewhere) and loop thru the list and use
something like .additem strMyVariable.

There could be other ways like storing a list off the screen and
calling that list within a userform.

Not sure exactly what you are doing but I probably would call the XL
list from within PPT.

Brian Reilly, MVP

On Mon, 3 Oct 2005 13:26:12 -0700, Ken <(E-Mail Removed)>
wrote:

>OK... I'm confused.
>
>I am trying to add a combox control to a ppt slide via the contols toolbar.
>
>I am able to add the combobox. But now I want to populate the list.
>
>I can't figure out how to do this. I know how to do this in excel (data
>validation) and in Access (bind a data source table to the control). FOr
>the life of me I can;t figure out how to do this simple thing in PPT combox
>control.
>
>Thanks!
>
>KEn
>
>I know how to do this in Access (bin

 
Reply With Quote
 
=?Utf-8?B?S2Vu?=
Guest
Posts: n/a
 
      3rd Oct 2005
Thanks!

I suppose I should say that I am VBS-ignorant.

Is there a way that you are aware of of doing this "through the GUI" like in
XL or Access?

Ken

"Brian Reilly, MVP" wrote:

> Ken,
> Yes, that is perplexing in PPT, isn't it?
> Let me skip the Access comparison and just focus on the XL solution
> and then let you figure it out for yourself (vbg)
>
> The XL solution relies on a range either defined by cells or a range
> name. We ain't got nuthin' like that in PPT. So whatcha gonna do?
>
> The simplest hardcoded method (don't ever tell anyone I know the word
> "hardcoded") is to just write the list in the VBE e.g.
>
> Private Sub ComboBox1_DropButtonClick()
> With ComboBox1
> ..AddItem "One"
> ..AddItem "two"
> End With
> End Sub
>
> If you want it not hardcoded, I think you'd have to grab the values
> from a list in XL (or elsewhere) and loop thru the list and use
> something like .additem strMyVariable.
>
> There could be other ways like storing a list off the screen and
> calling that list within a userform.
>
> Not sure exactly what you are doing but I probably would call the XL
> list from within PPT.
>
> Brian Reilly, MVP
>
> On Mon, 3 Oct 2005 13:26:12 -0700, Ken <(E-Mail Removed)>
> wrote:
>
> >OK... I'm confused.
> >
> >I am trying to add a combox control to a ppt slide via the contols toolbar.
> >
> >I am able to add the combobox. But now I want to populate the list.
> >
> >I can't figure out how to do this. I know how to do this in excel (data
> >validation) and in Access (bind a data source table to the control). FOr
> >the life of me I can;t figure out how to do this simple thing in PPT combox
> >control.
> >
> >Thanks!
> >
> >KEn
> >
> >I know how to do this in Access (bin

>

 
Reply With Quote
 
Brian Reilly, MVP
Guest
Posts: n/a
 
      4th Oct 2005
Ken,
No, must be through VBA.
Brian Reilly, MVP

On Mon, 3 Oct 2005 14:23:01 -0700, Ken <(E-Mail Removed)>
wrote:

>Thanks!
>
>I suppose I should say that I am VBS-ignorant.
>
>Is there a way that you are aware of of doing this "through the GUI" like in
>XL or Access?
>
>Ken
>
>"Brian Reilly, MVP" wrote:
>
>> Ken,
>> Yes, that is perplexing in PPT, isn't it?
>> Let me skip the Access comparison and just focus on the XL solution
>> and then let you figure it out for yourself (vbg)
>>
>> The XL solution relies on a range either defined by cells or a range
>> name. We ain't got nuthin' like that in PPT. So whatcha gonna do?
>>
>> The simplest hardcoded method (don't ever tell anyone I know the word
>> "hardcoded") is to just write the list in the VBE e.g.
>>
>> Private Sub ComboBox1_DropButtonClick()
>> With ComboBox1
>> ..AddItem "One"
>> ..AddItem "two"
>> End With
>> End Sub
>>
>> If you want it not hardcoded, I think you'd have to grab the values
>> from a list in XL (or elsewhere) and loop thru the list and use
>> something like .additem strMyVariable.
>>
>> There could be other ways like storing a list off the screen and
>> calling that list within a userform.
>>
>> Not sure exactly what you are doing but I probably would call the XL
>> list from within PPT.
>>
>> Brian Reilly, MVP
>>
>> On Mon, 3 Oct 2005 13:26:12 -0700, Ken <(E-Mail Removed)>
>> wrote:
>>
>> >OK... I'm confused.
>> >
>> >I am trying to add a combox control to a ppt slide via the contols toolbar.
>> >
>> >I am able to add the combobox. But now I want to populate the list.
>> >
>> >I can't figure out how to do this. I know how to do this in excel (data
>> >validation) and in Access (bind a data source table to the control). FOr
>> >the life of me I can;t figure out how to do this simple thing in PPT combox
>> >control.
>> >
>> >Thanks!
>> >
>> >KEn
>> >
>> >I know how to do this in Access (bin

>>

 
Reply With Quote
 
Steve Rindsberg
Guest
Posts: n/a
 
      5th Oct 2005
> I suppose I should say that I am VBS-ignorant.

Brian and I are less specialized. We're many_things-ignorant, but no matter, he
wasn't speaking VBS. That's VBA.

> Is there a way that you are aware of of doing this "through the GUI" like in
> XL or Access?


There's not, but you can add the values you want and they stay put until you
change them again in code. No need to respond to click events or the like.

Have a look here:
Manipulating Listbox and Combobox controls on slides
http://www.rdpslides.com/pptfaq/FAQ00439.htm


>
> Ken
>
> "Brian Reilly, MVP" wrote:
>
> > Ken,
> > Yes, that is perplexing in PPT, isn't it?
> > Let me skip the Access comparison and just focus on the XL solution
> > and then let you figure it out for yourself (vbg)
> >
> > The XL solution relies on a range either defined by cells or a range
> > name. We ain't got nuthin' like that in PPT. So whatcha gonna do?
> >
> > The simplest hardcoded method (don't ever tell anyone I know the word
> > "hardcoded") is to just write the list in the VBE e.g.
> >
> > Private Sub ComboBox1_DropButtonClick()
> > With ComboBox1
> > ..AddItem "One"
> > ..AddItem "two"
> > End With
> > End Sub
> >
> > If you want it not hardcoded, I think you'd have to grab the values
> > from a list in XL (or elsewhere) and loop thru the list and use
> > something like .additem strMyVariable.
> >
> > There could be other ways like storing a list off the screen and
> > calling that list within a userform.
> >
> > Not sure exactly what you are doing but I probably would call the XL
> > list from within PPT.
> >
> > Brian Reilly, MVP
> >
> > On Mon, 3 Oct 2005 13:26:12 -0700, Ken <(E-Mail Removed)>
> > wrote:
> >
> > >OK... I'm confused.
> > >
> > >I am trying to add a combox control to a ppt slide via the contols toolbar.
> > >
> > >I am able to add the combobox. But now I want to populate the list.
> > >
> > >I can't figure out how to do this. I know how to do this in excel (data
> > >validation) and in Access (bind a data source table to the control). FOr
> > >the life of me I can;t figure out how to do this simple thing in PPT combox
> > >control.
> > >
> > >Thanks!
> > >
> > >KEn
> > >
> > >I know how to do this in Access (bin

> >

>


-----------------------------------------
Steve Rindsberg, PPT MVP
PPT FAQ: www.pptfaq.com
PPTools: www.pptools.com
================================================


 
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
Filter a ComboBox Data Source sfauchille@gmail.com Microsoft VB .NET 0 10th Aug 2008 02:12 PM
One data source, two combobox lookups Scudder Consulting Microsoft Dot NET Framework Forms 5 6th Nov 2007 07:30 PM
ComboBox updating data source via look-up table =?Utf-8?B?RGF2ZSBTLg==?= Microsoft Dot NET Framework Forms 4 30th Jan 2007 01:30 PM
Another ComboBox data source gotcha web1110 Microsoft C# .NET 3 29th Mar 2005 04:28 AM
ComboBox use ListBox as data source =?Utf-8?B?QXJ0?= Microsoft VB .NET 12 13th Jan 2005 07:54 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:03 PM.