Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 05-30-2022, 11:19 AM
skarden skarden is offline What could stop VBA Key Bindings from firing? Windows 10 What could stop VBA Key Bindings from firing? Office 2010 64bit
Novice
What could stop VBA Key Bindings from firing?
 
Join Date: Dec 2011
Location: Orlando, FL
Posts: 27
skarden is on a distinguished road
Angry What could stop VBA Key Bindings from firing?

I have a very complex Word add-in that I place in the Startup folder. For years I have a series of Key Bindings that have worked perfectly.

Recently I have been trying to be more OOP oriented and was tweaking an application class and document class, that I've also had for years, to hold some routines I had placed in normal modules before.



I was not working on the key bindings at all, but all of a sudden, between 2 'versions' my key bindings, which are all Alt+[letter], have stopped working.

By "version" I mean that I typically do a Save As and give the file an higher #, just in case I do break something. My naming convention is the file name with the date as YYYY-MM-DD ##. So MyFile 2022-05-28 01 works just fine, but 2022-05-28 02 and onward they don't fire off at all.

I was suspecting it was something I did in the DocClass or AppClass, as I was working with those, and, of course, they have events. So I created a new file from 02 in which I replaced the DocClass and AppClass of 02 with what had been in version 01, but that didn't work.

Since I wasn't working on the Key Bindings at all, I wasn't testing them to see if they worked or not and now I'm many versions down the road, so I don't know if I can just go back to 01 and start from there.

I also tried going through several modules and copied version 01 and version 02 of them into Word documents so I could compare the files looking for changes, and tried to undo any I could find, but something is still eluding me.

I've tried looking high and low on the internet to try to find what could suddenly be causing Key Bindings to not fire, but I can't find anything.

BTW, I put in a bunch of debug.print statements so I could track my add-in's flow and I see all of my binding macros are being called, and I'm not getting any error messages from them when they load. I even tried making a Public macro that would bind them all so I could run that from the document and not just by the code executing or the VBA Editor. But as I put some debug.print statement in the actual key macros I see they don't run once I load version 02, but run every time with 01. So I know it isn't due to a Word build or Windows build, etc.

I also have a macro to clear them all out and then loaded them again, to no avail.

So, does anyone have any idea of what could stop a key binding from firing?
Reply With Quote
 

Tags
key bindings



Similar Threads
Thread Thread Starter Forum Replies Last Post
How can I stop these notices wmcook@comcast.net Outlook 1 09-03-2020 04:37 PM
How to stop ads? RonDBD Outlook 0 11-08-2019 07:16 AM
Excel VBA: Key Bindings? tinfanide Excel Programming 2 10-15-2012 05:07 AM
What could stop VBA Key Bindings from firing? How to stop a macro maceslin Word VBA 2 07-27-2012 04:38 AM
What could stop VBA Key Bindings from firing? How to stop repaginating ictodd Word 4 09-05-2011 02:57 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 12:32 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft