Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 10-18-2017, 02:20 PM
danjoe danjoe is offline Macro Enabled Word Doc Does not Properly Work on Different Machine Windows 7 64bit Macro Enabled Word Doc Does not Properly Work on Different Machine Office 2016
Novice
Macro Enabled Word Doc Does not Properly Work on Different Machine
 
Join Date: Oct 2017
Posts: 2
danjoe is on a distinguished road
Default Macro Enabled Word Doc Does not Properly Work on Different Machine

Hello,



I am very new to macros and word documents. However, recently I have a new project which requires me to build a macro-enabled word document .dotm file. The file has an embeded vb script which does work properly. So made saved it and made a copy, put it on a usb stick, and moved it to another machine. However, on the new machine the macro is totally gone and so the script never fires.

Does anyone have any idea on what the problem could be. The machine seems to have identical security settings so why does it work on one machine and not the other?

Any help or advise would be greatly appreciated.

Thanks in advance,
Joe
Reply With Quote
  #2  
Old 10-18-2017, 02:27 PM
macropod's Avatar
macropod macropod is offline Macro Enabled Word Doc Does not Properly Work on Different Machine Windows 7 64bit Macro Enabled Word Doc Does not Properly Work on Different Machine Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,963
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Your description suggests the macro isn't in the document but in its template; even a docx file would work the same way in such circumstances. Either that or the destination PC has its macro security set to disable all macros without notification - see under File|Options|Trust Center>Trust Center Settings>Macro Settings.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #3  
Old 10-19-2017, 05:39 AM
danjoe danjoe is offline Macro Enabled Word Doc Does not Properly Work on Different Machine Windows 7 64bit Macro Enabled Word Doc Does not Properly Work on Different Machine Office 2016
Novice
Macro Enabled Word Doc Does not Properly Work on Different Machine
 
Join Date: Oct 2017
Posts: 2
danjoe is on a distinguished road
Default

macropod,

Many thanks for the reply as this problem has me stumped for the past couple days. However, I am not sure I totally understand what you are saying. I did not save the document as a template I saved the document as a .docm. What exactly do you mean when you say "macro isn't in the document but in its template"?

I have no prior experience do writing macros in VB script so my knowledge is very limited. I am pretty certain the document security on the other machine is set to "Disable all macros with notification", however I do not get any notification. If I copy and paste the code directly into the document and save it locally on the new machine then close/reopen it works. Seems to me this should be a simple problem but I have not yet resolved the problem.

Thanks again macropod for your help,

Joe
Reply With Quote
  #4  
Old 10-19-2017, 05:49 AM
macropod's Avatar
macropod macropod is offline Macro Enabled Word Doc Does not Properly Work on Different Machine Windows 7 64bit Macro Enabled Word Doc Does not Properly Work on Different Machine Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,963
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Please pay attention to what I posted. I did not suggest you saved the document as a template; I suggested the macro might be in the document's template and not in the document itself. There's a world of difference between a document and a template and you should take time to learn how documents relate to templates.

Every document is based on a template. Macros in a template are available to any document based on that template regardless of the save format - provided they can access the template. Your statement
Quote:
Originally Posted by danjoe View Post
If I copy and paste the code directly into the document and save it locally on the new machine then close/reopen it works.
confirms that you had added the code to the document's template and not to the document itself.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Enabling the undo function in a macro enabled workbook jpb103 Excel Programming 4 06-05-2014 08:56 AM
Word 2010 Macro Enabled Template with Content Controls keen1598 Word VBA 7 01-29-2014 03:17 PM
Macro Enabled Word Doc Does not Properly Work on Different Machine Saving as ( PowerPoint Macro-Enabled Slide Show )?? delete123 PowerPoint 2 04-10-2013 05:38 AM
Macro Enabled Word Doc Does not Properly Work on Different Machine Macro-enabled Template ReviTULize Word VBA 4 02-01-2013 01:46 PM
Word 2000 Macro not working properly brianlb Word VBA 1 07-01-2009 07:04 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 04:31 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft