PDA

View Full Version : Spacebar not working



KGN
06-15-2007, 06:05 AM
Hi all.
I'm new to macros etc. in word and need help with a problem.
I write a lot and found at great VBA from mdmackillop on this site. I'm using his "Assisted spell check for visually impaired (http://vbaexpress.com/kb/getarticle.php?kb_id=204)". I use word i Outlook as well, and now spacebar doesn't work. This happend after I started to use "Assisted spell...". How do I activate this again?

mdmackillop
06-15-2007, 07:24 AM
Glad you like it!
Open the sample file
Press Alt +F8 and run the Clear Spacebar macro.

KGN
06-15-2007, 02:16 PM
Thanks for reply. Have tried what you said - but it only work i the sample file, not in a new word document og Outlook. It looks like the spacebar has been disabled.

mdmackillop
06-15-2007, 02:30 PM
Exiting the sample document should reinstate space bar, but if there is still a problem, try copying the code to a module in Normal.dot and run it from there
Sub ClearSpacebar()
Dim aKey
CustomizationContext = NormalTemplate
'Look for key and delete if found, then exit sub
For Each aKey In KeyBindings
If aKey.KeyString = "Space" Then
FindKey(BuildKeyCode(wdKeySpacebar)).Clear
'DoBeep 0.1, 1
MsgBox "Spacebar Off"
Exit Sub
End If
Next aKey
End Sub



If there is still a problem, try renaming Normal.dot to OldNormal.dot and restart Word. This will create a new normal.dot

KGN
06-15-2007, 02:53 PM
Thanks for your help. In the meantime I solved the problem by resetting
the keyboard to default functions: Tools|Customize|Keyboard|ResetAll.
I have tested your suggestion in Normal.dot - and it worked.

mdmackillop
06-15-2007, 02:56 PM
Glad you got it sorted.