Greetings code Gods! :D
I need help to create some kind of 'open with' in Excel and I've been told I can't do it in a formula and must use vba to do it. I want to execute an external file with a specific program that it's not Excel, from my Excel sheet.
I'm making the list of my karaoke songs (I'm addicted to karaoke!) and I wanna make the songs execute from the list. I was able to do this for the file types that are by default played with the karaoke player (I use KaraFun Player) but I hit the wall with zipped files.
Most of my karaoke files are zipped (all the ones in cdg+mp3 format) and it's not practical to associate all zip files to poen with a karaoke player program, so I need to open the files with the player from Excel.
My sheet is just like this example (it took me a lot of time, reading and testing to be able to do this, I really don't know much about this at all... but it looks cute!):
(HIPERLIGAÇÃO is HYPERLINK in portuguese)
So instead of the formula I have in E column, I need an 'open with formula' that opens the tracks named in D column (following the path in F1 cell and subfolder path in C column) with KaraFun Player (which has his full path in F2 cell).
Is it possible to make this?
An alternative should be to create a code, also in vba, to create a .bat file, run it and then delete it.
So if I type something like this in Run or Cmd:
I get my 'open with' result, and KaraFun Player opens playing Another Day In Paradise (or another day in hell for my neighbors since I suck at singing this! But no worries, they love me!:D)
I tried also creating a .bat file with that exact content, nothing more or less, and when I execute it, it also works perfectly.
So can any of this solutions be done? How can I turn my E column into a open with device?
I uploaded a zip package with the example of my sheet and all the stuff needed for testing:
Thank you in advance and all the best for everyone!
I need help to create some kind of 'open with' in Excel and I've been told I can't do it in a formula and must use vba to do it. I want to execute an external file with a specific program that it's not Excel, from my Excel sheet.
I'm making the list of my karaoke songs (I'm addicted to karaoke!) and I wanna make the songs execute from the list. I was able to do this for the file types that are by default played with the karaoke player (I use KaraFun Player) but I hit the wall with zipped files.
Most of my karaoke files are zipped (all the ones in cdg+mp3 format) and it's not practical to associate all zip files to poen with a karaoke player program, so I need to open the files with the player from Excel.
My sheet is just like this example (it took me a lot of time, reading and testing to be able to do this, I really don't know much about this at all... but it looks cute!):
(HIPERLIGAÇÃO is HYPERLINK in portuguese)
So instead of the formula I have in E column, I need an 'open with formula' that opens the tracks named in D column (following the path in F1 cell and subfolder path in C column) with KaraFun Player (which has his full path in F2 cell).
Is it possible to make this?
An alternative should be to create a code, also in vba, to create a .bat file, run it and then delete it.
So if I type something like this in Run or Cmd:
Code:
"C:\Program Files (x86)\KaraFun Player\KaraFunPlayer.exe" "C:\Users\P\Desktop\Karaokes\Phil Collins - Another Day In Paradise.zip"
I tried also creating a .bat file with that exact content, nothing more or less, and when I execute it, it also works perfectly.
So can any of this solutions be done? How can I turn my E column into a open with device?
I uploaded a zip package with the example of my sheet and all the stuff needed for testing:
Code:
https://www.dropbox.com/s/1nspjc2sd0x3bk7/test%20karaoke.zip
Thank you in advance and all the best for everyone!