Can I launch "cast to device" from VBA eg using the shell function? RRS feed

  • Question

  • In windows 10 explorer, the context menu offers the   "cast to device" option to send media to eg a TV connected to the same network.

    It would be very useful if I could launch this option from VBA eg using the shell function?

    Can you tell me whether this is possible please, and how to do it.

    Tuesday, April 19, 2016 8:59 AM

All replies

  • Ecurd,

    this is the forum for VB in visual studio Net. 

    Altough there is a VBA forum do I give yourself a low chance in that because this is more about the connection than about the code. 

    Try the Microsoft forums which are more for this kind of questions.


    Tuesday, April 19, 2016 9:57 AM
  • It isn't clear what type of VBA application you are working with, but your question should probably be moved to the VBA forum:

    Paul ~~~~ Microsoft MVP (Visual Basic)

    • Proposed as answer by Albert_Zhang Wednesday, April 20, 2016 3:17 AM
    Tuesday, April 19, 2016 11:59 AM
  • I haven't done this you may be able to write a C# program that uses the ProjectionManager class and call that from VBA.  You can Google/Bing C# and ProjectionManager.  I am not aware of any Win32 commands to do it.  If you do it manually does it work.  I have 2 Samsung SmartTVs (2013 and 2014 models) and only my 2014 model works even though both show up as options.
    Wednesday, April 20, 2016 5:17 PM