Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: Exporting Word Macros  (Read 4638 times)

0 Members and 1 Guest are viewing this topic.

rjbinney

    Topic Starter


    Adviser
  • Disarmingly Good-looking
  • Experience: Familiar
  • OS: Windows 11
Exporting Word Macros
« on: September 20, 2017, 03:27:56 PM »
I am having a world of hurt with the new Word update, and Microsoft's "MVPs" are encouraging me to delete all my old templates.

Trouble is, I have tricked this thing out from over 25 years of using it - keyboard shortcuts, and the like.

Double trouble is, while I am smart enough to create some basic macros, I'm not smart enough to figure out how to preserve them and install them on new templates.

Short of Editing each one, copying the text, and pasting it into a Notepad file, is there a smarter way? (I want contents, not just Macro names.)

Thanks!
Dan: You're gonna need to get someone to fix my computer.                     Kim: What's wrong with it?                     Dan: It's in several pieces on my floor.

BC_Programmer


    Mastermind
  • Typing is no substitute for thinking.
  • Thanked: 1140
    • Yes
    • Yes
    • BC-Programming.com
  • Certifications: List
  • Computer: Specs
  • Experience: Beginner
  • OS: Windows 11
Re: Exporting Word Macros
« Reply #1 on: September 20, 2017, 03:54:32 PM »
You can export the macros in a document by pressing Alt-F11 to open the Visual Basic Editor, and then choose File->Export File.

You can use File->Import File on the same screen later to re-import them.

Rather than deleting templates I'd suggest renaming or moving them. Remember that the template files are really just ordinary word documents, so you can rename them to have the .doc extension (as long as your file explorer/Windows explorer is set to show file extensions!) and then they should not automatically load or be regarded as templates.
I was trying to dereference Null Pointers before it was cool.

rjbinney

    Topic Starter


    Adviser
  • Disarmingly Good-looking
  • Experience: Familiar
  • OS: Windows 11
Re: Exporting Word Macros
« Reply #2 on: September 20, 2017, 04:20:44 PM »
Thanks. I had seen that but wasn't sure how to "test" it out... Without going to a different machine and importing (which I don't have access to right now).
Rather than deleting templates I'd suggest renaming or moving them. Remember that the template files are really just ordinary word documents, so you can rename them to have the .doc extension (as long as your file explorer/Windows explorer is set to show file extensions!) and then they should not automatically load or be regarded as templates.
Oh, I know that. But you know industrial troubleshooting - instead of trying to figure out what triggered a new problem in the last 24 hours, the first step should be to delete things that have been stable for 24 years.
Dan: You're gonna need to get someone to fix my computer.                     Kim: What's wrong with it?                     Dan: It's in several pieces on my floor.

BC_Programmer


    Mastermind
  • Typing is no substitute for thinking.
  • Thanked: 1140
    • Yes
    • Yes
    • BC-Programming.com
  • Certifications: List
  • Computer: Specs
  • Experience: Beginner
  • OS: Windows 11
Re: Exporting Word Macros
« Reply #3 on: September 20, 2017, 05:58:43 PM »
Yeah I meant you can backup/save the files rather than "deleting"  them as you were advised.

Not that I expect they really have a clue what they are doing. 90% of the time it's generic boilerplate crap and arbitrary, senseless "diagnostic steps" that doesn't even consider your specific problem. My favourite is when they provide steps to reboot in "safe mode" via the start menu to somebody who has made it clear the system doesn't even turn on.

Anyway, this way, you can say "OK I deleted them what next!" and then later if they have been unsuccessful at assisting and they go "well golly gee willickers I don't know what the problem is, sorry that I had you delete 25+ years of fiddling, woopsy daisy" you can just put the files back.
I was trying to dereference Null Pointers before it was cool.

rjbinney

    Topic Starter


    Adviser
  • Disarmingly Good-looking
  • Experience: Familiar
  • OS: Windows 11
Re: Exporting Word Macros
« Reply #4 on: September 20, 2017, 06:04:53 PM »
Yeah, I went through an issue with them where I literally rebuilt my Desktop twice, got a new machine, did TWO clean reinstalls, only to finally find a real person (out of that entire chain of command) who "did a little research", and - voila, I went from being the only person who had ever seen anything like it to seeing a patch deployed in a global update.

And since Windows 10 is very picky about how it names your User directories, it was just such a pain in the-
Dan: You're gonna need to get someone to fix my computer.                     Kim: What's wrong with it?                     Dan: It's in several pieces on my floor.