PC Review


Reply
Thread Tools Rate Thread

.Avi video's and Excel

 
 
Corey
Guest
Posts: n/a
 
      8th Mar 2007
I have developed quite a complex Exel workbook application.
I have used a simply ScreenCapture program, to record(.avi) how to use the various components of the
Workbook.

What would be the BEST way to have these Video's (.avi) files associated to the Workbook and run if
needed?

Can Excel run the .Avi from a Forms Button ?
How do i go about this if it can?

Regards

Corey....


 
Reply With Quote
 
 
 
 
=?Utf-8?B?Sm9obiBCdW5keQ==?=
Guest
Posts: n/a
 
      8th Mar 2007
Not sure EXACTLY what you mean, or what version you have, but if you go to
your userform right-click the toolbox and additional controls there is a
windows media player control that is very easy/intuitive to use if you have
it.
--
-John Northwest11
Please rate when your question is answered to help us and others know what
is helpful.


"Corey" wrote:

> I have developed quite a complex Exel workbook application.
> I have used a simply ScreenCapture program, to record(.avi) how to use the various components of the
> Workbook.
>
> What would be the BEST way to have these Video's (.avi) files associated to the Workbook and run if
> needed?
>
> Can Excel run the .Avi from a Forms Button ?
> How do i go about this if it can?
>
> Regards
>
> Corey....
>
>
>

 
Reply With Quote
 
Corey
Guest
Posts: n/a
 
      8th Mar 2007
Thnaks John.
I am using Excel XP.
I added the WMP option but how do i set it to play a .Avi when the userform initializes ?

"John Bundy" <(E-Mail Removed)(remove)> wrote in message
news:6DD2B04F-9F44-4EA1-85A4-(E-Mail Removed)...
Not sure EXACTLY what you mean, or what version you have, but if you go to
your userform right-click the toolbox and additional controls there is a
windows media player control that is very easy/intuitive to use if you have
it.
--
-John Northwest11
Please rate when your question is answered to help us and others know what
is helpful.


"Corey" wrote:

> I have developed quite a complex Exel workbook application.
> I have used a simply ScreenCapture program, to record(.avi) how to use the various components of
> the
> Workbook.
>
> What would be the BEST way to have these Video's (.avi) files associated to the Workbook and run
> if
> needed?
>
> Can Excel run the .Avi from a Forms Button ?
> How do i go about this if it can?
>
> Regards
>
> Corey....
>
>
>



 
Reply With Quote
 
=?Utf-8?B?Sm9obiBCdW5keQ==?=
Guest
Posts: n/a
 
      8th Mar 2007
Load your form with whatever method you choose, then on the activate place
the addy like this, this is just a sample from a system avi on my comp

Private Sub UserForm_Activate()
WindowsMediaPlayer1.URL = "C:\Documents and Settings\BIS Student\My
Documents\My Universal Skins\mySkins\161.avi"

End Sub
--
-John Northwest11
Please rate when your question is answered to help us and others know what
is helpful.


"Corey" wrote:

> Thnaks John.
> I am using Excel XP.
> I added the WMP option but how do i set it to play a .Avi when the userform initializes ?
>
> "John Bundy" <(E-Mail Removed)(remove)> wrote in message
> news:6DD2B04F-9F44-4EA1-85A4-(E-Mail Removed)...
> Not sure EXACTLY what you mean, or what version you have, but if you go to
> your userform right-click the toolbox and additional controls there is a
> windows media player control that is very easy/intuitive to use if you have
> it.
> --
> -John Northwest11
> Please rate when your question is answered to help us and others know what
> is helpful.
>
>
> "Corey" wrote:
>
> > I have developed quite a complex Exel workbook application.
> > I have used a simply ScreenCapture program, to record(.avi) how to use the various components of
> > the
> > Workbook.
> >
> > What would be the BEST way to have these Video's (.avi) files associated to the Workbook and run
> > if
> > needed?
> >
> > Can Excel run the .Avi from a Forms Button ?
> > How do i go about this if it can?
> >
> > Regards
> >
> > Corey....
> >
> >
> >

>
>
>

 
Reply With Quote
 
Corey
Guest
Posts: n/a
 
      8th Mar 2007
Thank you John.
Go the .Avi to play in a Screen Sized U/F.
Is there anyway to Have the Userform "Unload me" when the Avi finishes ?


"John Bundy" <(E-Mail Removed)(remove)> wrote in message
news:3B02E845-CA07-47F1-9E20-(E-Mail Removed)...
Load your form with whatever method you choose, then on the activate place
the addy like this, this is just a sample from a system avi on my comp

Private Sub UserForm_Activate()
WindowsMediaPlayer1.URL = "C:\Documents and Settings\BIS Student\My
Documents\My Universal Skins\mySkins\161.avi"

End Sub
--
-John Northwest11
Please rate when your question is answered to help us and others know what
is helpful.


"Corey" wrote:

> Thnaks John.
> I am using Excel XP.
> I added the WMP option but how do i set it to play a .Avi when the userform initializes ?
>
> "John Bundy" <(E-Mail Removed)(remove)> wrote in message
> news:6DD2B04F-9F44-4EA1-85A4-(E-Mail Removed)...
> Not sure EXACTLY what you mean, or what version you have, but if you go to
> your userform right-click the toolbox and additional controls there is a
> windows media player control that is very easy/intuitive to use if you have
> it.
> --
> -John Northwest11
> Please rate when your question is answered to help us and others know what
> is helpful.
>
>
> "Corey" wrote:
>
> > I have developed quite a complex Exel workbook application.
> > I have used a simply ScreenCapture program, to record(.avi) how to use the various components of
> > the
> > Workbook.
> >
> > What would be the BEST way to have these Video's (.avi) files associated to the Workbook and run
> > if
> > needed?
> >
> > Can Excel run the .Avi from a Forms Button ?
> > How do i go about this if it can?
> >
> > Regards
> >
> > Corey....
> >
> >
> >

>
>
>



 
Reply With Quote
 
NickHK
Guest
Posts: n/a
 
      8th Mar 2007
Corey,
This seems to work:

Private Sub MediaPlayer1_EndOfStream(ByVal Result As Long)
Unload Me
End Sub

NickHK

"Corey" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Thank you John.
> Go the .Avi to play in a Screen Sized U/F.
> Is there anyway to Have the Userform "Unload me" when the Avi finishes ?
>
>
> "John Bundy" <(E-Mail Removed)(remove)> wrote in message
> news:3B02E845-CA07-47F1-9E20-(E-Mail Removed)...
> Load your form with whatever method you choose, then on the activate place
> the addy like this, this is just a sample from a system avi on my comp
>
> Private Sub UserForm_Activate()
> WindowsMediaPlayer1.URL = "C:\Documents and Settings\BIS Student\My
> Documents\My Universal Skins\mySkins\161.avi"
>
> End Sub
> --
> -John Northwest11
> Please rate when your question is answered to help us and others know what
> is helpful.
>
>
> "Corey" wrote:
>
> > Thnaks John.
> > I am using Excel XP.
> > I added the WMP option but how do i set it to play a .Avi when the

userform initializes ?
> >
> > "John Bundy" <(E-Mail Removed)(remove)> wrote in message
> > news:6DD2B04F-9F44-4EA1-85A4-(E-Mail Removed)...
> > Not sure EXACTLY what you mean, or what version you have, but if you go

to
> > your userform right-click the toolbox and additional controls there is a
> > windows media player control that is very easy/intuitive to use if you

have
> > it.
> > --
> > -John Northwest11
> > Please rate when your question is answered to help us and others know

what
> > is helpful.
> >
> >
> > "Corey" wrote:
> >
> > > I have developed quite a complex Exel workbook application.
> > > I have used a simply ScreenCapture program, to record(.avi) how to use

the various components of
> > > the
> > > Workbook.
> > >
> > > What would be the BEST way to have these Video's (.avi) files

associated to the Workbook and run
> > > if
> > > needed?
> > >
> > > Can Excel run the .Avi from a Forms Button ?
> > > How do i go about this if it can?
> > >
> > > Regards
> > >
> > > Corey....
> > >
> > >
> > >

> >
> >
> >

>
>



 
Reply With Quote
 
Doug Glancy
Guest
Posts: n/a
 
      8th Mar 2007
Nick,

I was reading along here and fooling around with this control. I tried the
EndOfStream event and it didn't work - the code never gets there. I looked
on MSDN at this Media Player 11 page
http://msdn2.microsoft.com/en-gb/library/aa392418.aspx and it says
EndOfStream is "reserved for future use." I'm using XL 2003 on win XP.
Anyways it sure sounds like the right event, so hopefully it works for
Corey.

Doug

"NickHK" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> Corey,
> This seems to work:
>
> Private Sub MediaPlayer1_EndOfStream(ByVal Result As Long)
> Unload Me
> End Sub
>
> NickHK
>
> "Corey" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
>> Thank you John.
>> Go the .Avi to play in a Screen Sized U/F.
>> Is there anyway to Have the Userform "Unload me" when the Avi finishes ?
>>
>>
>> "John Bundy" <(E-Mail Removed)(remove)> wrote in message
>> news:3B02E845-CA07-47F1-9E20-(E-Mail Removed)...
>> Load your form with whatever method you choose, then on the activate
>> place
>> the addy like this, this is just a sample from a system avi on my comp
>>
>> Private Sub UserForm_Activate()
>> WindowsMediaPlayer1.URL = "C:\Documents and Settings\BIS Student\My
>> Documents\My Universal Skins\mySkins\161.avi"
>>
>> End Sub
>> --
>> -John Northwest11
>> Please rate when your question is answered to help us and others know
>> what
>> is helpful.
>>
>>
>> "Corey" wrote:
>>
>> > Thnaks John.
>> > I am using Excel XP.
>> > I added the WMP option but how do i set it to play a .Avi when the

> userform initializes ?
>> >
>> > "John Bundy" <(E-Mail Removed)(remove)> wrote in message
>> > news:6DD2B04F-9F44-4EA1-85A4-(E-Mail Removed)...
>> > Not sure EXACTLY what you mean, or what version you have, but if you go

> to
>> > your userform right-click the toolbox and additional controls there is
>> > a
>> > windows media player control that is very easy/intuitive to use if you

> have
>> > it.
>> > --
>> > -John Northwest11
>> > Please rate when your question is answered to help us and others know

> what
>> > is helpful.
>> >
>> >
>> > "Corey" wrote:
>> >
>> > > I have developed quite a complex Exel workbook application.
>> > > I have used a simply ScreenCapture program, to record(.avi) how to
>> > > use

> the various components of
>> > > the
>> > > Workbook.
>> > >
>> > > What would be the BEST way to have these Video's (.avi) files

> associated to the Workbook and run
>> > > if
>> > > needed?
>> > >
>> > > Can Excel run the .Avi from a Forms Button ?
>> > > How do i go about this if it can?
>> > >
>> > > Regards
>> > >
>> > > Corey....
>> > >
>> > >
>> > >
>> >
>> >
>> >

>>
>>

>
>



 
Reply With Quote
 
Doug Glancy
Guest
Posts: n/a
 
      8th Mar 2007
Corey,

If Nick's suggestion works for you, it seems better to me, but in case it
doesn't this does seem to work in XL 2003 win XP:

Private Sub WindowsMediaPlayer1_PlayStateChange(ByVal NewState As Long)
If NewState = 1 Then '1 = "stopped"
Unload Me
End If
End Sub

hth,

Doug

"Corey" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Thank you John.
> Go the .Avi to play in a Screen Sized U/F.
> Is there anyway to Have the Userform "Unload me" when the Avi finishes ?
>
>
> "John Bundy" <(E-Mail Removed)(remove)> wrote in message
> news:3B02E845-CA07-47F1-9E20-(E-Mail Removed)...
> Load your form with whatever method you choose, then on the activate place
> the addy like this, this is just a sample from a system avi on my comp
>
> Private Sub UserForm_Activate()
> WindowsMediaPlayer1.URL = "C:\Documents and Settings\BIS Student\My
> Documents\My Universal Skins\mySkins\161.avi"
>
> End Sub
> --
> -John Northwest11
> Please rate when your question is answered to help us and others know what
> is helpful.
>
>
> "Corey" wrote:
>
>> Thnaks John.
>> I am using Excel XP.
>> I added the WMP option but how do i set it to play a .Avi when the
>> userform initializes ?
>>
>> "John Bundy" <(E-Mail Removed)(remove)> wrote in message
>> news:6DD2B04F-9F44-4EA1-85A4-(E-Mail Removed)...
>> Not sure EXACTLY what you mean, or what version you have, but if you go
>> to
>> your userform right-click the toolbox and additional controls there is a
>> windows media player control that is very easy/intuitive to use if you
>> have
>> it.
>> --
>> -John Northwest11
>> Please rate when your question is answered to help us and others know
>> what
>> is helpful.
>>
>>
>> "Corey" wrote:
>>
>> > I have developed quite a complex Exel workbook application.
>> > I have used a simply ScreenCapture program, to record(.avi) how to use
>> > the various components of
>> > the
>> > Workbook.
>> >
>> > What would be the BEST way to have these Video's (.avi) files
>> > associated to the Workbook and run
>> > if
>> > needed?
>> >
>> > Can Excel run the .Avi from a Forms Button ?
>> > How do i go about this if it can?
>> >
>> > Regards
>> >
>> > Corey....
>> >
>> >
>> >

>>
>>
>>

>
>



 
Reply With Quote
 
Doug Glancy
Guest
Posts: n/a
 
      8th Mar 2007
Corey,

Of course, this will also unload the form if the user presses stop, which
may not be what they're expecting <g>.

Doug

"Doug Glancy" <(E-Mail Removed)> wrote in message
news:e%23v%(E-Mail Removed)...
> Corey,
>
> If Nick's suggestion works for you, it seems better to me, but in case it
> doesn't this does seem to work in XL 2003 win XP:
>
> Private Sub WindowsMediaPlayer1_PlayStateChange(ByVal NewState As Long)
> If NewState = 1 Then '1 = "stopped"
> Unload Me
> End If
> End Sub
>
> hth,
>
> Doug
>
> "Corey" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
>> Thank you John.
>> Go the .Avi to play in a Screen Sized U/F.
>> Is there anyway to Have the Userform "Unload me" when the Avi finishes ?
>>
>>
>> "John Bundy" <(E-Mail Removed)(remove)> wrote in message
>> news:3B02E845-CA07-47F1-9E20-(E-Mail Removed)...
>> Load your form with whatever method you choose, then on the activate
>> place
>> the addy like this, this is just a sample from a system avi on my comp
>>
>> Private Sub UserForm_Activate()
>> WindowsMediaPlayer1.URL = "C:\Documents and Settings\BIS Student\My
>> Documents\My Universal Skins\mySkins\161.avi"
>>
>> End Sub
>> --
>> -John Northwest11
>> Please rate when your question is answered to help us and others know
>> what
>> is helpful.
>>
>>
>> "Corey" wrote:
>>
>>> Thnaks John.
>>> I am using Excel XP.
>>> I added the WMP option but how do i set it to play a .Avi when the
>>> userform initializes ?
>>>
>>> "John Bundy" <(E-Mail Removed)(remove)> wrote in message
>>> news:6DD2B04F-9F44-4EA1-85A4-(E-Mail Removed)...
>>> Not sure EXACTLY what you mean, or what version you have, but if you go
>>> to
>>> your userform right-click the toolbox and additional controls there is a
>>> windows media player control that is very easy/intuitive to use if you
>>> have
>>> it.
>>> --
>>> -John Northwest11
>>> Please rate when your question is answered to help us and others know
>>> what
>>> is helpful.
>>>
>>>
>>> "Corey" wrote:
>>>
>>> > I have developed quite a complex Exel workbook application.
>>> > I have used a simply ScreenCapture program, to record(.avi) how to use
>>> > the various components of
>>> > the
>>> > Workbook.
>>> >
>>> > What would be the BEST way to have these Video's (.avi) files
>>> > associated to the Workbook and run
>>> > if
>>> > needed?
>>> >
>>> > Can Excel run the .Avi from a Forms Button ?
>>> > How do i go about this if it can?
>>> >
>>> > Regards
>>> >
>>> > Corey....
>>> >
>>> >
>>> >
>>>
>>>
>>>

>>
>>

>
>



 
Reply With Quote
 
NickHK
Guest
Posts: n/a
 
      8th Mar 2007
Doug,
I have not really used this control, just playing around when I saw it had
that event, which seemed applicable.
I have not updated the Media Player for a while (saw no need), so my ocx is
marked as version "6.4.9.1129"
So seems like that event has been removed in later versions and is now
"Reserved For Future Use".

From your link then, it looks like you need to check for .PlayState=8
<MediaEnded> in the PlayStateChange events.

NickHK

"Doug Glancy" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> Nick,
>
> I was reading along here and fooling around with this control. I tried

the
> EndOfStream event and it didn't work - the code never gets there. I

looked
> on MSDN at this Media Player 11 page
> http://msdn2.microsoft.com/en-gb/library/aa392418.aspx and it says
> EndOfStream is "reserved for future use." I'm using XL 2003 on win XP.
> Anyways it sure sounds like the right event, so hopefully it works for
> Corey.
>
> Doug
>
> "NickHK" <(E-Mail Removed)> wrote in message
> news:%(E-Mail Removed)...
> > Corey,
> > This seems to work:
> >
> > Private Sub MediaPlayer1_EndOfStream(ByVal Result As Long)
> > Unload Me
> > End Sub
> >
> > NickHK
> >
> > "Corey" <(E-Mail Removed)> wrote in message
> > news:(E-Mail Removed)...
> >> Thank you John.
> >> Go the .Avi to play in a Screen Sized U/F.
> >> Is there anyway to Have the Userform "Unload me" when the Avi finishes

?
> >>
> >>
> >> "John Bundy" <(E-Mail Removed)(remove)> wrote in message
> >> news:3B02E845-CA07-47F1-9E20-(E-Mail Removed)...
> >> Load your form with whatever method you choose, then on the activate
> >> place
> >> the addy like this, this is just a sample from a system avi on my comp
> >>
> >> Private Sub UserForm_Activate()
> >> WindowsMediaPlayer1.URL = "C:\Documents and Settings\BIS Student\My
> >> Documents\My Universal Skins\mySkins\161.avi"
> >>
> >> End Sub
> >> --
> >> -John Northwest11
> >> Please rate when your question is answered to help us and others know
> >> what
> >> is helpful.
> >>
> >>
> >> "Corey" wrote:
> >>
> >> > Thnaks John.
> >> > I am using Excel XP.
> >> > I added the WMP option but how do i set it to play a .Avi when the

> > userform initializes ?
> >> >
> >> > "John Bundy" <(E-Mail Removed)(remove)> wrote in message
> >> > news:6DD2B04F-9F44-4EA1-85A4-(E-Mail Removed)...
> >> > Not sure EXACTLY what you mean, or what version you have, but if you

go
> > to
> >> > your userform right-click the toolbox and additional controls there

is
> >> > a
> >> > windows media player control that is very easy/intuitive to use if

you
> > have
> >> > it.
> >> > --
> >> > -John Northwest11
> >> > Please rate when your question is answered to help us and others know

> > what
> >> > is helpful.
> >> >
> >> >
> >> > "Corey" wrote:
> >> >
> >> > > I have developed quite a complex Exel workbook application.
> >> > > I have used a simply ScreenCapture program, to record(.avi) how to
> >> > > use

> > the various components of
> >> > > the
> >> > > Workbook.
> >> > >
> >> > > What would be the BEST way to have these Video's (.avi) files

> > associated to the Workbook and run
> >> > > if
> >> > > needed?
> >> > >
> >> > > Can Excel run the .Avi from a Forms Button ?
> >> > > How do i go about this if it can?
> >> > >
> >> > > Regards
> >> > >
> >> > > Corey....
> >> > >
> >> > >
> >> > >
> >> >
> >> >
> >> >
> >>
> >>

> >
> >

>
>



 
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
How to rip DVD and convert video,youtube video and flash to iPod Video MP4? bluesealover Windows XP Music 0 25th Jun 2007 06:11 PM
excel video =?Utf-8?B?QWwgQg==?= Microsoft Excel Programming 1 17th Dec 2005 01:16 AM
Excel and video =?Utf-8?B?RWQgU3luZXJneQ==?= Microsoft Excel Misc 0 18th Apr 2005 09:44 AM
video in excel =?Utf-8?B?S2ltUi5IYW1tZWw=?= Microsoft Excel Misc 1 22nd Feb 2005 07:29 PM
Excel and Video? =?Utf-8?B?Um9zcw==?= Microsoft Excel Programming 3 25th May 2004 05:01 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:31 PM.