Shift + F5 not working in Word 2016
-
- GoldLounger
- Posts: 2599
- Joined: 24 Jan 2010, 15:26
- Location: Olympia, WA
Re: Shift + F5 not working in Word 2016
See post 7 above this one
I am so far behind, I think I am First
Genealogy....confusing the dead and annoying the living
Genealogy....confusing the dead and annoying the living
-
- 5StarLounger
- Posts: 609
- Joined: 10 Jan 2016, 15:56
- Location: Madison, Wisconsin
Re: Shift + F5 not working in Word 2016
See your later post at http://www.eileenslounge.com/viewtopic.php?f=26&t=34883 for an error handler for the AutoOpen.hlewton wrote: ↑30 Apr 2020, 14:41Hans I found this on the net. It was talking about Word 2013. Will it work for me and if so how do I insert it into the Normal.dotm? I believe Word uses the extention of ".dotm" Also how would I use it to get me to where I want to be? Not sure how to activate the macro if I can use it at all.
Sub FileSave()
On Error Resume Next
ActiveDocument.Bookmarks.Add Range:=Selection.Range, name:="OpenAt"
ActiveDocument.Save
End Sub
Sub FileSaveAs()
On Error Resume Next
ActiveDocument.Bookmarks.Add Range:=Selection.Range, name:="OpenAt"
Dialogs(wdDialogFileSaveAs).Show
End Sub
Sub AutoOpen()
If ActiveDocument.Bookmarks.Exists("OpenAt") = True Then
ActiveDocument.Bookmarks("OpenAt").Select
End If
End Sub
Attorney Charles Kenyon
Templates in Microsoft Word
Modifying the QAT
The Importance of Styles in Microsoft Word
Templates in Microsoft Word
Modifying the QAT
The Importance of Styles in Microsoft Word
-
- PlatinumLounger
- Posts: 3808
- Joined: 24 Oct 2010, 23:39
- Location: Canton, Ohio USA
Re: Shift + F5 not working in Word 2016
Are you suggestion that the last part of this visual basic be replaced with the one from my other post? I ask because this one seems to be working perfect for me the way it is and I have never had that error pop up that caused me to start that other post? Sorry I just don't understand visual basic well enough to know if this last part would change the way word opens the document to the place it was last saved or not.Charles Kenyon wrote: ↑30 Jun 2020, 02:41See your later post at http://www.eileenslounge.com/viewtopic.php?f=26&t=34883 for an error handler for the AutoOpen.hlewton wrote: ↑30 Apr 2020, 14:41Hans I found this on the net. It was talking about Word 2013. Will it work for me and if so how do I insert it into the Normal.dotm? I believe Word uses the extention of ".dotm" Also how would I use it to get me to where I want to be? Not sure how to activate the macro if I can use it at all.
Sub FileSave()
On Error Resume Next
ActiveDocument.Bookmarks.Add Range:=Selection.Range, name:="OpenAt"
ActiveDocument.Save
End Sub
Sub FileSaveAs()
On Error Resume Next
ActiveDocument.Bookmarks.Add Range:=Selection.Range, name:="OpenAt"
Dialogs(wdDialogFileSaveAs).Show
End Sub
Sub AutoOpen()
If ActiveDocument.Bookmarks.Exists("OpenAt") = True Then
ActiveDocument.Bookmarks("OpenAt").Select
End If
End Sub
Regards,
hlewton
hlewton
-
- Administrator
- Posts: 78381
- Joined: 16 Jan 2010, 00:14
- Status: Microsoft MVP
- Location: Wageningen, The Netherlands
Re: Shift + F5 not working in Word 2016
The last macro (Sub AutoOpen) is the one that you reported to have caused a problem in the other thread...
Best wishes,
Hans
Hans
-
- Microsoft MVP
- Posts: 1316
- Joined: 24 May 2013, 15:33
- Location: Warminster, PA
Re: Shift + F5 not working in Word 2016
You can make the replacement. If no error occurs, the old and new versions of the macro behave exactly the same. However, if the error does occur, the macro from the other thread will prevent the message box from appearing. That's enough of a benefit to justify making the replacement.
-
- PlatinumLounger
- Posts: 3808
- Joined: 24 Oct 2010, 23:39
- Location: Canton, Ohio USA
Re: Shift + F5 not working in Word 2016
Yes and that has been corrected but the suggestion in the post above my last post here is what I was wondering about. I think the (Sub AutoOpen) is the same in both posts. So I'm not sure what was mentioned. I guess I was confused when I saw this
But I think everything is working fine.See your later post at http://www.eileenslounge.com/viewtopic.php?f=26&t=34883 for an error handler for the AutoOpen.
Regards,
hlewton
hlewton
-
- PlatinumLounger
- Posts: 3808
- Joined: 24 Oct 2010, 23:39
- Location: Canton, Ohio USA
Re: Shift + F5 not working in Word 2016
Thank you. I think the macros are the same right now as far as I can tell.Jay Freedman wrote: ↑30 Jun 2020, 14:39You can make the replacement. If no error occurs, the old and new versions of the macro behave exactly the same. However, if the error does occur, the macro from the other thread will prevent the message box from appearing. That's enough of a benefit to justify making the replacement.
These are from both threads and I believe they are the same. One is from that Ice Word document and the other just in Word itself.
Sub AutoOpen()
On Error GoTo ExitHere
If ActiveDocument.Bookmarks.Exists("OpenAt") Then
ActiveDocument.Bookmarks("OpenAt").Select
End If
ExitHere:
End Sub
And this if from this thread
Sub AutoOpen()
On Error GoTo ExitHere
If ActiveDocument.Bookmarks.Exists("OpenAt") Then
ActiveDocument.Bookmarks("OpenAt").Select
End If
ExitHere:
End Sub
Regards,
hlewton
hlewton
-
- PlatinumLounger
- Posts: 3808
- Joined: 24 Oct 2010, 23:39
- Location: Canton, Ohio USA
Re: Shift + F5 not working in Word 2016
I have a need to put the code in another Word document and my Alt+F11 is not working. As soon as I press the Alt key little black numbers and letters appear near the top of the document. How can I fix this so Alt+F11 works again?
Thanks
Thanks
Regards,
hlewton
hlewton
-
- Administrator
- Posts: 78381
- Joined: 16 Jan 2010, 00:14
- Status: Microsoft MVP
- Location: Wageningen, The Netherlands
Re: Shift + F5 not working in Word 2016
Press and hold down Alt. Press F11 and release F11, then release Alt.
Alternatively, activate the Developer tab of the ribbon and click Visual Basic. It is the first button in this tab.
If you don't see the Developer tab, select File > Options.
Select 'Customize Ribbon' in the navigation pane on the left.
Tick the check box Developer in the list of Main Tabs on the right.
Click OK.
Alternatively, activate the Developer tab of the ribbon and click Visual Basic. It is the first button in this tab.
If you don't see the Developer tab, select File > Options.
Select 'Customize Ribbon' in the navigation pane on the left.
Tick the check box Developer in the list of Main Tabs on the right.
Click OK.
Best wishes,
Hans
Hans
-
- PlatinumLounger
- Posts: 3808
- Joined: 24 Oct 2010, 23:39
- Location: Canton, Ohio USA
Re: Shift + F5 not working in Word 2016
Thanks. I guess I am going to have to try that developers tab. I checked and Alt+F11 isn't working in Excel either. Wonder what happened.HansV wrote: ↑10 Mar 2021, 13:34Press and hold down Alt. Press F11 and release F11, then release Alt.
Alternatively, activate the Developer tab of the ribbon and click Visual Basic. It is the first button in this tab.
If you don't see the Developer tab, select File > Options.
Select 'Customize Ribbon' in the navigation pane on the left.
Tick the check box Developer in the list of Main Tabs on the right.
Click OK.
Regards,
hlewton
hlewton
-
- Administrator
- Posts: 78381
- Joined: 16 Jan 2010, 00:14
- Status: Microsoft MVP
- Location: Wageningen, The Netherlands
-
- PlatinumLounger
- Posts: 3808
- Joined: 24 Oct 2010, 23:39
- Location: Canton, Ohio USA
Re: Shift + F5 not working in Word 2016
So you think a new keyboard will fix it? I can order one easily. Does it make sense that I can type and do all other tasks accurately with the keyboard?
Regards,
hlewton
hlewton
-
- Administrator
- Posts: 78381
- Joined: 16 Jan 2010, 00:14
- Status: Microsoft MVP
- Location: Wageningen, The Netherlands
Re: Shift + F5 not working in Word 2016
Does F11 work?
For example, in a browser F11 toggles full screen on and off, and in Excel, F11 inserts a new chart sheet.
For example, in a browser F11 toggles full screen on and off, and in Excel, F11 inserts a new chart sheet.
Best wishes,
Hans
Hans
-
- PlatinumLounger
- Posts: 3808
- Joined: 24 Oct 2010, 23:39
- Location: Canton, Ohio USA
-
- PlatinumLounger
- Posts: 3808
- Joined: 24 Oct 2010, 23:39
- Location: Canton, Ohio USA
Re: Shift + F5 not working in Word 2016
Hans see attachment to see what happens as soon as I press the Alt key. There are a lot of little balck boxes with numbers and letters in them.
You do not have the required permissions to view the files attached to this post.
Regards,
hlewton
hlewton
-
- Administrator
- Posts: 12601
- Joined: 16 Jan 2010, 15:49
- Location: London, Europe
Re: Shift + F5 not working in Word 2016
If I press and hold the Alt key then I see those shortcuts appear, but pressing F11 before I release the Alt key still brings up the VBE
StuartR
-
- PlatinumLounger
- Posts: 3808
- Joined: 24 Oct 2010, 23:39
- Location: Canton, Ohio USA
Re: Shift + F5 not working in Word 2016
Yes I wish it did for me but once I press and hold the Alt key pressing F11 does nothing. I used that procedure last year when I first started this thread and had no problem. Something has changed and I hope it's only the keyboard.
Last edited by hlewton on 10 Mar 2021, 14:57, edited 1 time in total.
Regards,
hlewton
hlewton
-
- Administrator
- Posts: 78381
- Joined: 16 Jan 2010, 00:14
- Status: Microsoft MVP
- Location: Wageningen, The Netherlands
Re: Shift + F5 not working in Word 2016
OK, so F11 is working.
The Alt key works too, for pressing Alt shows the shortcuts for the ribbon tabs: the black boxes indicate which key you can press to activate a tab. When you press N for example, you'll activate the Insert tab, and the black boxes will indicate which key or keys to press for each command.
Since both are OK, it doesn't appear to be a keyboard failure, and getting a new keyboard wouldn't help.
By the way, you can use this to activate the Visual Basic Editor: press Alt, press L, press V.
The Alt key works too, for pressing Alt shows the shortcuts for the ribbon tabs: the black boxes indicate which key you can press to activate a tab. When you press N for example, you'll activate the Insert tab, and the black boxes will indicate which key or keys to press for each command.
Since both are OK, it doesn't appear to be a keyboard failure, and getting a new keyboard wouldn't help.
By the way, you can use this to activate the Visual Basic Editor: press Alt, press L, press V.
Best wishes,
Hans
Hans
-
- PlatinumLounger
- Posts: 3808
- Joined: 24 Oct 2010, 23:39
- Location: Canton, Ohio USA
Re: Shift + F5 not working in Word 2016
I guess I'm going to have a spare keyboard and mouse unless I can cancel it at Amazon, which is OK.HansV wrote: ↑10 Mar 2021, 14:57OK, so F11 is working.
The Alt key works too, for pressing Alt shows the shortcuts for the ribbon tabs: the black boxes indicate which key you can press to activate a tab. When you press N for example, you'll activate the Insert tab, and the black boxes will indicate which key or keys to press for each command.
Since both are OK, it doesn't appear to be a keyboard failure, and getting a new keyboard wouldn't help.
By the way, you can use this to activate the Visual Basic Editor: press Alt, press L, press V.
Pressing the Alt the L then V worked. What does that mean, if anything, why Alt+F11 doesn't work?
I just used Alt+F4 to exit the visual basic so it worked but still not Alt+F11.
Regards,
hlewton
hlewton
-
- Administrator
- Posts: 78381
- Joined: 16 Jan 2010, 00:14
- Status: Microsoft MVP
- Location: Wageningen, The Netherlands
Re: Shift + F5 not working in Word 2016
It's weird, especially since you report that Alt+F11 doesn't work in Excel either. I don't have an explanation.
Best wishes,
Hans
Hans