LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel,microsoft.public.excel.misc
external usenet poster
 
Posts: 107
Default Weird WindowsMediaPlayer behaviour

So I had the following commands as part of a macro

Application.Cells(1, 1) = WindowsMediaPlayer1.Controls.currentPosition
Application.Cells(1, 2) = WindowsMediaPlayer2.Controls.currentPosition
Application.Cells(1, 3) = WindowsMediaPlayer3.Controls.currentPosition

which used to write the current position of the media player to cells a2, b1
and c1

Suddenly they resolutely show 0

The change I made was from

WindowsMediaPlayer1.URL = "c:\video\file1.wav"
WindowsMediaPlayer2.URL = "c:\video\file1a.wav"
WindowsMediaPlayer3.URL = "c:\video\file1a.wav"

to

WindowsMediaPlayer1.URL = "c:\video\file" & Range("a4") & ".wav"
WindowsMediaPlayer2.URL = "c:\video\file" & Range("a4") & "a.wav"
WindowsMediaPlayer3.URL = "c:\video\file" & Range("a4") & "a.wav"

where Range("a4") = 1

Even when I changed the code back it just wouldn't work.
Office 2007
Totally stumped. Suggestions welcome...


 
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
Range-name Behaviour Peter Excel Discussion (Misc queries) 3 September 16th 08 10:06 PM
for...next funny behaviour Steve Excel Discussion (Misc queries) 4 June 30th 08 08:06 PM
Excel2000: Weird behaviour in VBA Arvi Laanemets Excel Discussion (Misc queries) 3 February 1st 06 02:14 PM
Excel2000: Weird chart behaviour Arvi Laanemets Excel Discussion (Misc queries) 2 September 6th 05 07:48 AM
Strange behaviour Edgar Thoemmes Excel Worksheet Functions 1 February 8th 05 03:20 PM


All times are GMT +1. The time now is 09:44 PM.

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

About Us

"It's about Microsoft Excel"