Microsoft Office Forums

Go Back   Microsoft Office Forums > Microsoft Word > Word VBA

Reply
 
LinkBack Thread Tools Display Modes
  #1  
Old 02-23-2019, 09:59 AM
Ulodesk Ulodesk is offline Windows 7 64bit Office 2013
Word 2013 Expert Cert
 
Join Date: Sep 2009
Location: Virginia
Posts: 767
Ulodesk is on a distinguished road
Default Macro failing

I recently switched from Office 2010 to 365. The new version incorporated my Normal template and macros, but there is at least one that I cannot get to work in my stationery template (dotx), though I have never had any problem before, nor do I have any problem at work, where 365 is what we're served.

Initially thinking that the macros had not been copied to the letterhead template, I used the organizer to copy my Normal macros folder to my letterhead template, but now it is duplicated (please see screen shot, attached). I'm not sure which one to keep in the letterhead template.

As for the non-working macro, it's a recorded one that simply inserts the date right-aligned, removes the auto-updating content control to make it plain text, and returns to start the next paragraph at left. The shortcut [Ctrl+?] is not working in Normal-based documents or letterhead template or docs, though I recreated and assigned the shortcut, and my other macros seem to be working in both. Caps is not on. The macro works from Run in the dialogue box.

At one point, I got a pop-up telling me that I could not use macros in a document, but I have used macros in dotx templates for years.

Any ideas?
Attached Images
File Type: png Capture.PNG (10.1 KB, 10 views)
__________________
Sine scientia ars nihil est
Reply With Quote
  #2  
Old 02-23-2019, 01:50 PM
macropod's Avatar
macropod macropod is offline Windows 7 64bit Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 19,390
macropod is a splendid one to beholdmacropod is a splendid one to beholdmacropod is a splendid one to beholdmacropod is a splendid one to beholdmacropod is a splendid one to beholdmacropod is a splendid one to beholdmacropod is a splendid one to beholdmacropod is a splendid one to behold
Default

Templates in the dotx format cannot contain macros; as soon as you close it, any macros you've added to it will be lost. To use macros, you need to save the templates in the dotm format.
__________________
Cheers,
Paul Edstein
[MS MVP - Word]
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Timestamp Sub failing webba0264 Excel Programming 3 04-13-2017 09:09 PM
VBA failing when updaing TextBox in PowerPoint IIOII PowerPoint 1 07-29-2016 04:56 PM
Outlook Send to Yahoo Failing DAC8190 Outlook 0 02-13-2015 06:49 PM
Failing calendar response lucura Outlook 0 03-24-2011 01:01 AM
Office 2007 Updates failing topbrewer Office 1 02-06-2010 12:36 AM


All times are GMT -7. The time now is 10:52 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
MSOfficeForums.com is not affiliated with Microsoft