Shift + F5 not working in Word 2016

User avatar
DaveA
GoldLounger
Posts: 2599
Joined: 24 Jan 2010, 15:26
Location: Olympia, WA

Re: Shift + F5 not working in Word 2016

Post by DaveA »

See post 7 above this one
I am so far behind, I think I am First :evilgrin:
Genealogy....confusing the dead and annoying the living

User avatar
Charles Kenyon
4StarLounger
Posts: 596
Joined: 10 Jan 2016, 15:56
Location: Madison, Wisconsin

Re: Shift + F5 not working in Word 2016

Post by Charles Kenyon »

hlewton wrote:
30 Apr 2020, 14:41
Hans 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
See your later post at http://www.eileenslounge.com/viewtopic.php?f=26&t=34883 for an error handler for the AutoOpen.

User avatar
hlewton
PlatinumLounger
Posts: 3788
Joined: 24 Oct 2010, 23:39
Location: Canton, Ohio USA

Re: Shift + F5 not working in Word 2016

Post by hlewton »

Charles Kenyon wrote:
30 Jun 2020, 02:41
hlewton wrote:
30 Apr 2020, 14:41
Hans 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
See your later post at http://www.eileenslounge.com/viewtopic.php?f=26&t=34883 for an error handler for the AutoOpen.
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.
Regards,
hlewton

User avatar
HansV
Administrator
Posts: 78236
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: Shift + F5 not working in Word 2016

Post by HansV »

The last macro (Sub AutoOpen) is the one that you reported to have caused a problem in the other thread...
Best wishes,
Hans

User avatar
Jay Freedman
Microsoft MVP
Posts: 1312
Joined: 24 May 2013, 15:33
Location: Warminster, PA

Re: Shift + F5 not working in Word 2016

Post by Jay Freedman »

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.

User avatar
hlewton
PlatinumLounger
Posts: 3788
Joined: 24 Oct 2010, 23:39
Location: Canton, Ohio USA

Re: Shift + F5 not working in Word 2016

Post by hlewton »

HansV wrote:
30 Jun 2020, 13:51
The last macro (Sub AutoOpen) is the one that you reported to have caused a problem in the other thread...
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
See your later post at http://www.eileenslounge.com/viewtopic.php?f=26&t=34883 for an error handler for the AutoOpen.
But I think everything is working fine.
Regards,
hlewton

User avatar
hlewton
PlatinumLounger
Posts: 3788
Joined: 24 Oct 2010, 23:39
Location: Canton, Ohio USA

Re: Shift + F5 not working in Word 2016

Post by hlewton »

Jay Freedman wrote:
30 Jun 2020, 14:39
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.
Thank you. I think the macros are the same right now as far as I can tell.
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

User avatar
hlewton
PlatinumLounger
Posts: 3788
Joined: 24 Oct 2010, 23:39
Location: Canton, Ohio USA

Re: Shift + F5 not working in Word 2016

Post by hlewton »

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
Regards,
hlewton

User avatar
HansV
Administrator
Posts: 78236
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: Shift + F5 not working in Word 2016

Post by HansV »

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.
Best wishes,
Hans

User avatar
hlewton
PlatinumLounger
Posts: 3788
Joined: 24 Oct 2010, 23:39
Location: Canton, Ohio USA

Re: Shift + F5 not working in Word 2016

Post by hlewton »

HansV wrote:
10 Mar 2021, 13:34
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.
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.
Regards,
hlewton

User avatar
HansV
Administrator
Posts: 78236
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: Shift + F5 not working in Word 2016

Post by HansV »

A keyboard failure?
Best wishes,
Hans

User avatar
hlewton
PlatinumLounger
Posts: 3788
Joined: 24 Oct 2010, 23:39
Location: Canton, Ohio USA

Re: Shift + F5 not working in Word 2016

Post by hlewton »

HansV wrote:
10 Mar 2021, 13:41
A keyboard failure?
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

User avatar
HansV
Administrator
Posts: 78236
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: Shift + F5 not working in Word 2016

Post by HansV »

Does F11 work?
For example, in a browser F11 toggles full screen on and off, and in Excel, F11 inserts a new chart sheet.
Best wishes,
Hans

User avatar
hlewton
PlatinumLounger
Posts: 3788
Joined: 24 Oct 2010, 23:39
Location: Canton, Ohio USA

Re: Shift + F5 not working in Word 2016

Post by hlewton »

HansV wrote:
10 Mar 2021, 14:36
Does F11 work?
For example, in a browser F11 toggles full screen on and off, and in Excel, F11 inserts a new chart sheet.
Yes it works in both those incidents.
Regards,
hlewton

User avatar
hlewton
PlatinumLounger
Posts: 3788
Joined: 24 Oct 2010, 23:39
Location: Canton, Ohio USA

Re: Shift + F5 not working in Word 2016

Post by hlewton »

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.
Alt.jpg
You do not have the required permissions to view the files attached to this post.
Regards,
hlewton

User avatar
StuartR
Administrator
Posts: 12577
Joined: 16 Jan 2010, 15:49
Location: London, Europe

Re: Shift + F5 not working in Word 2016

Post by StuartR »

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


User avatar
hlewton
PlatinumLounger
Posts: 3788
Joined: 24 Oct 2010, 23:39
Location: Canton, Ohio USA

Re: Shift + F5 not working in Word 2016

Post by hlewton »

StuartR wrote:
10 Mar 2021, 14:54
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
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

User avatar
HansV
Administrator
Posts: 78236
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: Shift + F5 not working in Word 2016

Post by HansV »

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.
Best wishes,
Hans

User avatar
hlewton
PlatinumLounger
Posts: 3788
Joined: 24 Oct 2010, 23:39
Location: Canton, Ohio USA

Re: Shift + F5 not working in Word 2016

Post by hlewton »

HansV wrote:
10 Mar 2021, 14:57
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.
I guess I'm going to have a spare keyboard and mouse unless I can cancel it at Amazon, which is OK.

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

User avatar
HansV
Administrator
Posts: 78236
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: Shift + F5 not working in Word 2016

Post by HansV »

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