Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 08-28-2013, 08:46 AM
Mhangoy Mhangoy is offline Getting Macro To Work in .docx file on Website Windows Vista Getting Macro To Work in .docx file on Website Office 2010 32bit
Novice
Getting Macro To Work in .docx file on Website
 
Join Date: May 2013
Posts: 5
Mhangoy is on a distinguished road
Default Getting Macro To Work in .docx file on Website

Hello,
I've created a Form content .docm Word document (Word 2010) with some macros in it, saved it as a .dotm template and created a new .docx document based on that template. Works fine if I open it direct from Word.


However, I need to put this document on a website. When I open the .docx file off the website, the template doesn't load and therefore my macros don't run. Looks like the document looks for the template on the client pc and not the webserver.
How can I get the template to load when called off the website please?
Thanks.
Reply With Quote
  #2  
Old 08-29-2013, 03:13 PM
Stefan Blom's Avatar
Stefan Blom Stefan Blom is offline Getting Macro To Work in .docx file on Website Windows 7 64bit Getting Macro To Work in .docx file on Website Office 2013
Moderator
 
Join Date: Aug 2011
Posts: 3,836
Stefan Blom is a name known to allStefan Blom is a name known to allStefan Blom is a name known to allStefan Blom is a name known to allStefan Blom is a name known to allStefan Blom is a name known to all
Default

I believe macro security prevents Word from loading macros from the server. I suspect that the only solution is to ask users to download both the document and the template, and put the template in a trusted location, such as their User Templates folder.
__________________
Stefan Blom
Microsoft Word MVP

Windows 11, Microsoft 365 apps for business
Reply With Quote
  #3  
Old 08-29-2013, 11:10 PM
Mhangoy Mhangoy is offline Getting Macro To Work in .docx file on Website Windows Vista Getting Macro To Work in .docx file on Website Office 2010 32bit
Novice
Getting Macro To Work in .docx file on Website
 
Join Date: May 2013
Posts: 5
Mhangoy is on a distinguished road
Default

Noted; thanks.
Reply With Quote
  #4  
Old 09-05-2013, 09:20 AM
Mhangoy Mhangoy is offline Getting Macro To Work in .docx file on Website Windows Vista Getting Macro To Work in .docx file on Website Office 2010 32bit
Novice
Getting Macro To Work in .docx file on Website
 
Join Date: May 2013
Posts: 5
Mhangoy is on a distinguished road
Default

I've been thinking there must be an easier way to do this - so I saved my file as a .docm file, so that there's no external templates to load. I then expected to be able to open the .docm file off the webserver from a client pc, possibly with that 'Enable macro' dialogue to begin with. Alas - Internet Explorer opens the .docm file as a zip file !
Grateful of any help round this.
Cheers.
Reply With Quote
  #5  
Old 09-05-2013, 12:48 PM
Stefan Blom's Avatar
Stefan Blom Stefan Blom is offline Getting Macro To Work in .docx file on Website Windows 7 64bit Getting Macro To Work in .docx file on Website Office 2013
Moderator
 
Join Date: Aug 2011
Posts: 3,836
Stefan Blom is a name known to allStefan Blom is a name known to allStefan Blom is a name known to allStefan Blom is a name known to allStefan Blom is a name known to allStefan Blom is a name known to all
Default

The fact that the file won't open properly suggests a problem with file associations. On the problematic PC(s), can you open *.docm which are not stored on a web site?
__________________
Stefan Blom
Microsoft Word MVP

Windows 11, Microsoft 365 apps for business
Reply With Quote
  #6  
Old 09-06-2013, 06:38 AM
Charles Kenyon Charles Kenyon is offline Getting Macro To Work in .docx file on Website Windows Vista Getting Macro To Work in .docx file on Website Office 2010 32bit
Moderator
 
Join Date: Mar 2012
Location: Sun Prairie, Wisconsin
Posts: 9,034
Charles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant future
Default

Properly set up, I don't believe a PC will run macros in a document on a website, unless that is set up as a trusted location (not advised).
Reply With Quote
  #7  
Old 09-06-2013, 06:57 AM
Stefan Blom's Avatar
Stefan Blom Stefan Blom is offline Getting Macro To Work in .docx file on Website Windows 7 64bit Getting Macro To Work in .docx file on Website Office 2013
Moderator
 
Join Date: Aug 2011
Posts: 3,836
Stefan Blom is a name known to allStefan Blom is a name known to allStefan Blom is a name known to allStefan Blom is a name known to allStefan Blom is a name known to allStefan Blom is a name known to all
Default

Indeed, running the macro isn't going to work (as I suggested earlier in this thread). But the OP wrote that he/she couldn't even open the file.
__________________
Stefan Blom
Microsoft Word MVP

Windows 11, Microsoft 365 apps for business
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Macro - Can I move information from a website and excel to word? redzan Word VBA 1 03-13-2013 07:39 AM
Getting Macro To Work in .docx file on Website macros used to work in all Word.docx> not anymore? Gardener Word 12 12-31-2011 06:23 AM
Where we can find a Word document (docx file) that contains professional work inside? Jamal NUMAN Word 0 06-26-2011 09:57 AM
Getting Macro To Work in .docx file on Website Trying to download a .doc file from email or website on word 2007 on vista wilson723 Word 1 10-23-2009 11:17 AM
Converting a Docx file to a Dictionary file geoffatmhg Word 0 02-08-2009 04:00 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 03:57 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