Results 1 to 14 of 14

Thread: Music Player Addin For Excel 2003 - Suggestions-Bugs-Etc...

  1. #1

    Thread Starter
    Discovering Life Siddharth Rout's Avatar
    Join Date
    Feb 2005
    Location
    Mumbai, India
    Posts
    12,001

    Music Player Addin For Excel 2003 - Suggestions-Bugs-Etc...

    This is a music Player Addin for Excel 2003. The code can be seen by pressing Alt + F11.

    Would appreciate if you can share your thoughts, if any. Please do not reply in that thread.

    Sidz
    A good exercise for the Heart is to bend down and help another up...
    Please Mark your Thread "Resolved", if the query is solved


    MyGear:
    ★ CPU ★ Ryzen 5 5800X
    ★ GPU ★ NVIDIA GeForce RTX 3080 TI Founder Edition
    ★ RAM ★ G. Skill Trident Z RGB 32GB 3600MHz
    ★ MB ★ ASUS TUF GAMING X570 (WI-FI) ATX Gaming
    ★ Storage ★ SSD SB-ROCKET-1TB + SEAGATE 2TB Barracuda IHD
    ★ Cooling ★ NOCTUA NH-D15 CHROMAX BLACK 140mm + 10 of Noctua NF-F12 PWM
    ★ PSU ★ ANTEC HCG-1000-EXTREME 1000 Watt 80 Plus Gold Fully Modular PSU
    ★ Case ★ LIAN LI PC-O11 DYNAMIC XL ROG (BLACK) (G99.O11DXL-X)
    ★ Monitor ★ LG Ultragear 27" 240Hz Gaming Monitor
    ★ Keyboard ★ TVS Electronics Gold Keyboard
    ★ Mouse ★ Logitech G502 Hero

  2. #2
    Addicted Member
    Join Date
    Jan 2007
    Location
    England
    Posts
    234

    Re: Music Player Addin For Excel 2003 - Suggestions-Bugs-Etc...

    Sid, I like it!

    Using office 2007, i open my mp3

    click the mute button and I receive

    Object variable or With block variable not set

    i'm guessing because the tool bars aren't created in the same way?

    Code:
    Sub AdjustSound()
        If MuteMe = False Then
            MuteMe = True
            UserForm1.MediaPlayer1.Mute = True
            With SndBtn
                .FaceId = 3730
                .TooltipText = "Enable Sound"
                .Tag = "SndButton"
                .OnAction = "AdjustSound"
            End With
        Else
            MuteMe = False
            UserForm1.MediaPlayer1.Mute = False
            With SndBtn
                .FaceId = 68
                .TooltipText = "Mute Sound"
                .Tag = "SndButton"
                .OnAction = "AdjustSound"
            End With
        End If
    End Sub

  3. #3
    PowerPoster Nightwalker83's Avatar
    Join Date
    Dec 2001
    Location
    Adelaide, Australia
    Posts
    13,344

    Re: Music Player Addin For Excel 2003 - Suggestions-Bugs-Etc...

    @ koolsid,

    It looks cool! I'm going to try it now.

    Quote Originally Posted by Mitch_s_s
    Sid, I like it!
    You do realize Sid said the music player was for Excel 2003 not 2007?

    Edit:

    I get the following error:

    Method 'Play' of object "IMediaPlayer2" failed!
    In

    Code:
    Private Sub UserForm_Activate()
        UserForm1.Hide
        MediaPlayer1.Filename = UserForm2.List1.List(i, 1)
        MediaPlayer1.Play
    End Sub
    The bold part is the error!
    Last edited by Nightwalker83; Jan 28th, 2009 at 01:22 AM.
    when you quote a post could you please do it via the "Reply With Quote" button or if it multiple post click the "''+" button then "Reply With Quote" button.
    If this thread is finished with please mark it "Resolved" by selecting "Mark thread resolved" from the "Thread tools" drop-down menu.
    https://get.cryptobrowser.site/30/4111672

  4. #4
    Addicted Member
    Join Date
    Jan 2007
    Location
    England
    Posts
    234

    Re: Music Player Addin For Excel 2003 - Suggestions-Bugs-Etc...

    nope that didn't even register ha!

    ah well, ignore me

  5. #5

    Thread Starter
    Discovering Life Siddharth Rout's Avatar
    Join Date
    Feb 2005
    Location
    Mumbai, India
    Posts
    12,001

    Re: Music Player Addin For Excel 2003 - Suggestions-Bugs-Etc...

    @Mitch: Let me se If I can make one for 2007

    @Night: Is media player installed on your pc? If yes, which version?
    A good exercise for the Heart is to bend down and help another up...
    Please Mark your Thread "Resolved", if the query is solved


    MyGear:
    ★ CPU ★ Ryzen 5 5800X
    ★ GPU ★ NVIDIA GeForce RTX 3080 TI Founder Edition
    ★ RAM ★ G. Skill Trident Z RGB 32GB 3600MHz
    ★ MB ★ ASUS TUF GAMING X570 (WI-FI) ATX Gaming
    ★ Storage ★ SSD SB-ROCKET-1TB + SEAGATE 2TB Barracuda IHD
    ★ Cooling ★ NOCTUA NH-D15 CHROMAX BLACK 140mm + 10 of Noctua NF-F12 PWM
    ★ PSU ★ ANTEC HCG-1000-EXTREME 1000 Watt 80 Plus Gold Fully Modular PSU
    ★ Case ★ LIAN LI PC-O11 DYNAMIC XL ROG (BLACK) (G99.O11DXL-X)
    ★ Monitor ★ LG Ultragear 27" 240Hz Gaming Monitor
    ★ Keyboard ★ TVS Electronics Gold Keyboard
    ★ Mouse ★ Logitech G502 Hero

  6. #6
    PowerPoster Nightwalker83's Avatar
    Join Date
    Dec 2001
    Location
    Adelaide, Australia
    Posts
    13,344

    Re: Music Player Addin For Excel 2003 - Suggestions-Bugs-Etc...

    Quote Originally Posted by koolsid
    @Mitch: Let me se If I can make one for 2007

    @Night: Is media player installed on your pc? If yes, which version?
    Yes, it is Media Player 11! I also have the MP11 run-time files installed too.
    when you quote a post could you please do it via the "Reply With Quote" button or if it multiple post click the "''+" button then "Reply With Quote" button.
    If this thread is finished with please mark it "Resolved" by selecting "Mark thread resolved" from the "Thread tools" drop-down menu.
    https://get.cryptobrowser.site/30/4111672

  7. #7

    Thread Starter
    Discovering Life Siddharth Rout's Avatar
    Join Date
    Feb 2005
    Location
    Mumbai, India
    Posts
    12,001

    Re: Music Player Addin For Excel 2003 - Suggestions-Bugs-Etc...

    Yes, it is Media Player 11! I also have the MP11 run-time files installed too.
    No wonder. It is supposed to work with 9.0. Congratulations. You have managed to find one bug.

    I guess I have to redevelop it keeping it version free...
    A good exercise for the Heart is to bend down and help another up...
    Please Mark your Thread "Resolved", if the query is solved


    MyGear:
    ★ CPU ★ Ryzen 5 5800X
    ★ GPU ★ NVIDIA GeForce RTX 3080 TI Founder Edition
    ★ RAM ★ G. Skill Trident Z RGB 32GB 3600MHz
    ★ MB ★ ASUS TUF GAMING X570 (WI-FI) ATX Gaming
    ★ Storage ★ SSD SB-ROCKET-1TB + SEAGATE 2TB Barracuda IHD
    ★ Cooling ★ NOCTUA NH-D15 CHROMAX BLACK 140mm + 10 of Noctua NF-F12 PWM
    ★ PSU ★ ANTEC HCG-1000-EXTREME 1000 Watt 80 Plus Gold Fully Modular PSU
    ★ Case ★ LIAN LI PC-O11 DYNAMIC XL ROG (BLACK) (G99.O11DXL-X)
    ★ Monitor ★ LG Ultragear 27" 240Hz Gaming Monitor
    ★ Keyboard ★ TVS Electronics Gold Keyboard
    ★ Mouse ★ Logitech G502 Hero

  8. #8

    Thread Starter
    Discovering Life Siddharth Rout's Avatar
    Join Date
    Feb 2005
    Location
    Mumbai, India
    Posts
    12,001

    Re: Music Player Addin For Excel 2003 - Suggestions-Bugs-Etc...

    @Night: I have used a new control. It should work now
    A good exercise for the Heart is to bend down and help another up...
    Please Mark your Thread "Resolved", if the query is solved


    MyGear:
    ★ CPU ★ Ryzen 5 5800X
    ★ GPU ★ NVIDIA GeForce RTX 3080 TI Founder Edition
    ★ RAM ★ G. Skill Trident Z RGB 32GB 3600MHz
    ★ MB ★ ASUS TUF GAMING X570 (WI-FI) ATX Gaming
    ★ Storage ★ SSD SB-ROCKET-1TB + SEAGATE 2TB Barracuda IHD
    ★ Cooling ★ NOCTUA NH-D15 CHROMAX BLACK 140mm + 10 of Noctua NF-F12 PWM
    ★ PSU ★ ANTEC HCG-1000-EXTREME 1000 Watt 80 Plus Gold Fully Modular PSU
    ★ Case ★ LIAN LI PC-O11 DYNAMIC XL ROG (BLACK) (G99.O11DXL-X)
    ★ Monitor ★ LG Ultragear 27" 240Hz Gaming Monitor
    ★ Keyboard ★ TVS Electronics Gold Keyboard
    ★ Mouse ★ Logitech G502 Hero

  9. #9
    PowerPoster Nightwalker83's Avatar
    Join Date
    Dec 2001
    Location
    Adelaide, Australia
    Posts
    13,344

    Re: Music Player Addin For Excel 2003 - Suggestions-Bugs-Etc...

    I now receive:

    Method or data member not found
    In

    Code:
    Sub PlayMusic()
        i = frmPlayList.List1.ListIndex
        
        If Boolpause = False Then
            MMControlForm.Show
            BoolStop = True
        Else
            MMControlForm.mmKool.Command = "Play"
        End If
    when you quote a post could you please do it via the "Reply With Quote" button or if it multiple post click the "''+" button then "Reply With Quote" button.
    If this thread is finished with please mark it "Resolved" by selecting "Mark thread resolved" from the "Thread tools" drop-down menu.
    https://get.cryptobrowser.site/30/4111672

  10. #10

    Thread Starter
    Discovering Life Siddharth Rout's Avatar
    Join Date
    Feb 2005
    Location
    Mumbai, India
    Posts
    12,001

    Re: Music Player Addin For Excel 2003 - Suggestions-Bugs-Etc...

    Like I mentioned there, you need MCI32.Ocx

    Check if this file is there in windows system32 directory?

    Give me a moment will upload the ocx file. Save the file in the windows system32 folder and then click on the Start=>Run and type the following. (Before you do this close Excel.)

    C:\WINDOWS\system32\regsvr32 C:\WINDOWS\system32\Mci32.ocx

    Now open excel and run it
    Last edited by Siddharth Rout; Jan 31st, 2009 at 03:01 AM.
    A good exercise for the Heart is to bend down and help another up...
    Please Mark your Thread "Resolved", if the query is solved


    MyGear:
    ★ CPU ★ Ryzen 5 5800X
    ★ GPU ★ NVIDIA GeForce RTX 3080 TI Founder Edition
    ★ RAM ★ G. Skill Trident Z RGB 32GB 3600MHz
    ★ MB ★ ASUS TUF GAMING X570 (WI-FI) ATX Gaming
    ★ Storage ★ SSD SB-ROCKET-1TB + SEAGATE 2TB Barracuda IHD
    ★ Cooling ★ NOCTUA NH-D15 CHROMAX BLACK 140mm + 10 of Noctua NF-F12 PWM
    ★ PSU ★ ANTEC HCG-1000-EXTREME 1000 Watt 80 Plus Gold Fully Modular PSU
    ★ Case ★ LIAN LI PC-O11 DYNAMIC XL ROG (BLACK) (G99.O11DXL-X)
    ★ Monitor ★ LG Ultragear 27" 240Hz Gaming Monitor
    ★ Keyboard ★ TVS Electronics Gold Keyboard
    ★ Mouse ★ Logitech G502 Hero

  11. #11
    PowerPoster Nightwalker83's Avatar
    Join Date
    Dec 2001
    Location
    Adelaide, Australia
    Posts
    13,344

    Re: Music Player Addin For Excel 2003 - Suggestions-Bugs-Etc...

    Quote Originally Posted by koolsid
    Like I mentioned there, you need MCI32.Ocx

    Check if this file is there in windows system32 directory? Before using the tool, go to VBA Editor and in the toolbox add reference to this file. It should work then.

    Give me a moment will upload the ocx file. Save the file in the windows system32 folder and then click on the Start=>Run and type the following. (Before you do this close Excel.)

    C:\WINDOWS\system32\regsvr32 C:\WINDOWS\system32\Mci32.ocx

    Now open excel and run it

    I must have overlooked the Mci32.ocx when I read the original thread! The program is working now.
    when you quote a post could you please do it via the "Reply With Quote" button or if it multiple post click the "''+" button then "Reply With Quote" button.
    If this thread is finished with please mark it "Resolved" by selecting "Mark thread resolved" from the "Thread tools" drop-down menu.
    https://get.cryptobrowser.site/30/4111672

  12. #12

    Thread Starter
    Discovering Life Siddharth Rout's Avatar
    Join Date
    Feb 2005
    Location
    Mumbai, India
    Posts
    12,001

    Re: Music Player Addin For Excel 2003 - Suggestions-Bugs-Etc...

    I must have overlooked the Mci32.ocx when I read the original thread! The program is working now.
    Phew!!! Finally
    A good exercise for the Heart is to bend down and help another up...
    Please Mark your Thread "Resolved", if the query is solved


    MyGear:
    ★ CPU ★ Ryzen 5 5800X
    ★ GPU ★ NVIDIA GeForce RTX 3080 TI Founder Edition
    ★ RAM ★ G. Skill Trident Z RGB 32GB 3600MHz
    ★ MB ★ ASUS TUF GAMING X570 (WI-FI) ATX Gaming
    ★ Storage ★ SSD SB-ROCKET-1TB + SEAGATE 2TB Barracuda IHD
    ★ Cooling ★ NOCTUA NH-D15 CHROMAX BLACK 140mm + 10 of Noctua NF-F12 PWM
    ★ PSU ★ ANTEC HCG-1000-EXTREME 1000 Watt 80 Plus Gold Fully Modular PSU
    ★ Case ★ LIAN LI PC-O11 DYNAMIC XL ROG (BLACK) (G99.O11DXL-X)
    ★ Monitor ★ LG Ultragear 27" 240Hz Gaming Monitor
    ★ Keyboard ★ TVS Electronics Gold Keyboard
    ★ Mouse ★ Logitech G502 Hero

  13. #13
    Fanatic Member
    Join Date
    Jun 2008
    Posts
    1,023

    Re: Music Player Addin For Excel 2003 - Suggestions-Bugs-Etc...

    i cant see the code.

  14. #14

    Thread Starter
    Discovering Life Siddharth Rout's Avatar
    Join Date
    Feb 2005
    Location
    Mumbai, India
    Posts
    12,001

    Re: Music Player Addin For Excel 2003 - Suggestions-Bugs-Etc...

    Close Excel first.

    Download the file "My Music Player Ver 1.1.zip", unzip it. There is an xla file. Double click it....

    Now when Excel opens you won't see a workbook. That is okay. Press Alt+F11. You will enter the Vba Code area. There on the LHS you will see the VBA Project(My Music Player Ver 1.1.xla)
    Expand it to see the code...

    Hope this helps...
    A good exercise for the Heart is to bend down and help another up...
    Please Mark your Thread "Resolved", if the query is solved


    MyGear:
    ★ CPU ★ Ryzen 5 5800X
    ★ GPU ★ NVIDIA GeForce RTX 3080 TI Founder Edition
    ★ RAM ★ G. Skill Trident Z RGB 32GB 3600MHz
    ★ MB ★ ASUS TUF GAMING X570 (WI-FI) ATX Gaming
    ★ Storage ★ SSD SB-ROCKET-1TB + SEAGATE 2TB Barracuda IHD
    ★ Cooling ★ NOCTUA NH-D15 CHROMAX BLACK 140mm + 10 of Noctua NF-F12 PWM
    ★ PSU ★ ANTEC HCG-1000-EXTREME 1000 Watt 80 Plus Gold Fully Modular PSU
    ★ Case ★ LIAN LI PC-O11 DYNAMIC XL ROG (BLACK) (G99.O11DXL-X)
    ★ Monitor ★ LG Ultragear 27" 240Hz Gaming Monitor
    ★ Keyboard ★ TVS Electronics Gold Keyboard
    ★ Mouse ★ Logitech G502 Hero

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width