Discussion:
slider control for VB 6 in powerpoint
(too old to reply)
Lara
2008-02-25 15:42:04 UTC
Permalink
Hi,
I think Ive found a bug with the microsoft slider control 6.0 - it
malfunctions in powerpoint using VB 6. I can't seem to get round it, so I am
looking for another control that is like a slider that I could use - I found
one called Trackbar, but it seems not to be available for vba :(
is there a way I can get a slider-esque control for my powerpoint
presentation?
Thanks!
Michael Cole
2008-02-25 23:41:28 UTC
Permalink
Post by Lara
Hi,
I think Ive found a bug with the microsoft slider control 6.0 - it
malfunctions in powerpoint using VB 6.
Powerpoint doesn't use VB - it uses VBA, which is a subset of VB. Perhaps a
better way of saying the above, is that the slider control is a VB control,
and doesn't work in VBA.
Post by Lara
I can't seem to get round it,
so I am looking for another control that is like a slider that I
could use - I found one called Trackbar, but it seems not to be
available for vba :(
is there a way I can get a slider-esque control for my powerpoint
presentation?
I would suggest you ask in a VBA group, as VB and VBA are sufficiently
different that the answers will not be the same.

Perhaps ...office.developers.vba?
--
Regards,

Michael Cole
Ken Halter
2008-02-25 23:50:09 UTC
Permalink
Post by Lara
Hi,
I think Ive found a bug with the microsoft slider control 6.0 - it
malfunctions in powerpoint using VB 6. I can't seem to get round it, so I am
looking for another control that is like a slider that I could use - I found
one called Trackbar, but it seems not to be available for vba :(
is there a way I can get a slider-esque control for my powerpoint
presentation?
Thanks!
"in powerpoint using VB 6" is confusing... Powerpoint uses VBA...

I've never done any form programming in VBA, but if you go to....

Tools/Macro/Visual Basic Editor

Click Insert/Userform

and then right-click the toolbox, it'll say "Additional Controls" and allows
you to add any control you have available to you... including the slider
control (part of Microsoft Windows Common Controls 6.0)

If that one's not working for you... and you *do* have VB6, you can pick and
compile one of these....

Entries 1 - 10 of 154 found
http://www.planetsourcecode.com/vb/scripts/BrowseCategoryOrSearchResults.asp?optSort=Alphabetical&txtCriteria=slider&blnWorldDropDownUsed=TRUE&txtMaxNumberOfEntriesPerPage=10&blnResetAllVariables=TRUE&lngWId=1

That site has a VBA section, too, so.....
--
Ken Halter - MS-MVP-VB - Please keep all discussions in the groups..
In Loving Memory - http://www.vbsight.com/Remembrance.htm
Lara
2008-02-26 13:33:01 UTC
Permalink
Sorry, you are right, it is VBA. The microsoft slider control 6.0 is the one
that malfunctions in VBA (and a couple of other controls in the Common
Controls list) - I just find it irritating that controls that are in the vba
powerpoint toolbox don't work with vba in powerpoint!

I went to the site you sent me - I could only find a filter for code working
for vba access or vba excel, not powerpoint, but I guess it should be
similar.

But I'm not quite sure how to go about dealing with the code after I
download it, I am only able to open a couple of types of file in VBA and some
of the code is really garbled, then I am really not sure how to get to the
end product of a nice little control from a big load of code! Sorry for the
simple question, as you can tell I am completely new to this. I think I will
post on the VBA forum, that seems the sensible thing to do! Thank you for all
your help and clarification.

Lara
Post by Ken Halter
Post by Lara
Hi,
I think Ive found a bug with the microsoft slider control 6.0 - it
malfunctions in powerpoint using VB 6. I can't seem to get round it, so I am
looking for another control that is like a slider that I could use - I found
one called Trackbar, but it seems not to be available for vba :(
is there a way I can get a slider-esque control for my powerpoint
presentation?
Thanks!
"in powerpoint using VB 6" is confusing... Powerpoint uses VBA...
I've never done any form programming in VBA, but if you go to....
Tools/Macro/Visual Basic Editor
Click Insert/Userform
and then right-click the toolbox, it'll say "Additional Controls" and allows
you to add any control you have available to you... including the slider
control (part of Microsoft Windows Common Controls 6.0)
If that one's not working for you... and you *do* have VB6, you can pick and
compile one of these....
Entries 1 - 10 of 154 found
http://www.planetsourcecode.com/vb/scripts/BrowseCategoryOrSearchResults.asp?optSort=Alphabetical&txtCriteria=slider&blnWorldDropDownUsed=TRUE&txtMaxNumberOfEntriesPerPage=10&blnResetAllVariables=TRUE&lngWId=1
That site has a VBA section, too, so.....
--
Ken Halter - MS-MVP-VB - Please keep all discussions in the groups..
In Loving Memory - http://www.vbsight.com/Remembrance.htm
Ken Halter
2008-02-26 16:02:22 UTC
Permalink
Post by Lara
Sorry, you are right, it is VBA. The microsoft slider control 6.0 is the one
that malfunctions in VBA (and a couple of other controls in the Common
Controls list) - I just find it irritating that controls that are in the vba
powerpoint toolbox don't work with vba in powerpoint!
Yeah... a VBA group'll be your best bet... about the "powerpoint toolbox",
though... when you select "additional controls", that shows a dialog of
*all* ocxs, etc, available on your system. Just because they're in the list
doesn't mean they'll work from within VBA or VB... and, even if they work
flawlessly, doesn't mean they're legal to distribute... so, you can see it
can get confusing....
--
Ken Halter - MS-MVP-VB - Please keep all discussions in the groups..
In Loving Memory - http://www.vbsight.com/Remembrance.htm
Loading...