View Single Post
 
Old 11-21-2014, 11:06 AM
pluviosilla pluviosilla is offline Windows 7 64bit Office 2010 32bit
Novice
 
Join Date: Nov 2014
Location: Fort Worth, Texas / Orizaba, Veracruz
Posts: 5
pluviosilla is on a distinguished road
Default Access ActiveX Control in Normal Macro

I have embedded a WindowsMediaPlayer ActiveX control in a Word document and I want to toggle Play/Pause using a keyboard shortcut (say, the F12 function key).

Problems:
(1) I can create a macro with F12 as a keyboard shortcut, but I am not able to access the WindowsMediaPlayer control from the macro, apparently because it is in the Normal template instead of my VBA project.
(2) Alternatively, when I try to assign keyboard shortcuts to a VBA project macro, this doesn't work. When I save the macro I can specify the VBA project instead of Normal.dotx, but this makes the keyboard shortcut go away.

I'd like to either:
(1) Access the WindowsMediaPlayer control from a macro in Normal, or
(2) Tie a keyboard shortcut to a Macro in my VBA project

Are either possible?
Reply With Quote