Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel,microsoft.public.excel.misc,microsoft.public.excel.programming
external usenet poster
 
Posts: 27
Default Selectionstart

My last stupid question of the week...

Anyone know the syntax to set the selectionstart for a mediaplayer object in
a userform please? I thought MP.selectionstart = 300 would start it 300
seconds in but apparently not. I'm using WMP 6 btw for various obscure
reasons 8-)

Many thanks in advance

tp


  #2   Report Post  
Posted to microsoft.public.excel.misc,microsoft.public.excel.programming,microsoft.public.excel
JNW JNW is offline
external usenet poster
 
Posts: 480
Default Selectionstart

I am sure I will be corrected by smarter people, but I don't believe
selectionstart is an option for mediaplayer objects. SelectionStart is a
textbox control that allows you to select portions of entries into the
textbox.

When waiting 300 seconds, do you have users looking at something else on the
userform? or is it on a worksheet? You could use the application.wait
function to time the opening of the userform with the WP control on it. I
can't seem to find anything to have the player wait to play.



"teepee" wrote:

My last stupid question of the week...

Anyone know the syntax to set the selectionstart for a mediaplayer object in
a userform please? I thought MP.selectionstart = 300 would start it 300
seconds in but apparently not. I'm using WMP 6 btw for various obscure
reasons 8-)

Many thanks in advance

tp



  #3   Report Post  
Posted to microsoft.public.excel.misc,microsoft.public.excel.programming,microsoft.public.excel
external usenet poster
 
Posts: 27
Default Selectionstart


"JNW" wrote

I am sure I will be corrected by smarter people, but I don't believe
selectionstart is an option for mediaplayer objects. SelectionStart is a
textbox control that allows you to select portions of entries into the
textbox.


I've done this before, s oI know it can be done, but I didn't keep the
sheet, rather stupidly. It needed a command inserting in the module that
summoned the userform iirc


  #4   Report Post  
Posted to microsoft.public.excel.misc,microsoft.public.excel.programming,microsoft.public.excel
JNW JNW is offline
external usenet poster
 
Posts: 480
Default Selectionstart

Thanks for the heads up. I'm learning new things everyday.

So after some searching and playing I came up with the following:
WP.Controls.currentPosition = 300

Instead of selectionStart it sets teh current position of the player in the
song. The number is still in seconds. I had this in a userform_initialize
event but could put it other places as well.

Hope that works

"teepee" wrote:


"JNW" wrote

I am sure I will be corrected by smarter people, but I don't believe
selectionstart is an option for mediaplayer objects. SelectionStart is a
textbox control that allows you to select portions of entries into the
textbox.


I've done this before, s oI know it can be done, but I didn't keep the
sheet, rather stupidly. It needed a command inserting in the module that
summoned the userform iirc



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Selectionstart teepee Excel Discussion (Misc queries) 3 January 4th 06 04:32 PM


All times are GMT +1. The time now is 08:46 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"