Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 03-28-2019, 06:30 AM
Ulodesk Ulodesk is offline Just one macro not working Windows 7 64bit Just one macro not working Office 2013
Word 2013 Expert Cert
Just one macro not working
 
Join Date: Sep 2009
Location: Virginia
Posts: 872
Ulodesk is on a distinguished road
Default Just one macro not working

In my (W7) Normal.dotm, in Module1 (the only module), this one macro of the 20-some I have, stopped working from the keyboard shortcut months ago, and I'm finally getting around to posting here. It works fine if I run it from macros dialogue. All my other macro shortcuts work. The shortcut is the same I have used for ten years, [Ctrl+Shift+?]. The keyboard and those keys in particular work fine as well. Any ideas?



Code:
Sub InsertDate()
'
' InsertDate Macro
'
'
    Selection.ParagraphFormat.Alignment = wdAlignParagraphRight
    Selection.Fields.Add Range:=Selection.Range, Type:=wdFieldEmpty, Text:= _
        "DATE  \@ ""MMMM d, yyyy"" ", PreserveFormatting:=True
    Selection.MoveLeft Unit:=wdCharacter, Count:=1, Extend:=wdExtend
    Selection.Fields.Unlink
    Selection.MoveRight Unit:=wdCharacter, Count:=1
    Selection.TypeParagraph
    Selection.ParagraphFormat.Alignment = wdAlignParagraphLeft
End Sub
Reply With Quote
 

Tags
insert date



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to move data - Macro not working ecarter312 Excel Programming 1 08-10-2016 11:26 PM
Macro button is not working for some users bjsusol Excel 2 03-23-2015 07:57 AM
Just one macro not working Macro to update ole links not working kisa500 PowerPoint 7 02-05-2013 03:52 AM
Just one macro not working Fraction macro not working Ulodesk Word VBA 1 07-18-2012 04:01 PM
Just one macro not working macro not working (on click increment) gsrikanth Excel Programming 1 07-12-2012 07:40 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 12:14 AM.


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