![]() |
#1
|
|||
|
|||
![]()
Hello
Can some kind soul help me - or tell me where to go to debug/unscramble (i.e. make operational) the "new macros" in my Word template. I'm not a programmer - someone knowledgeable could sort this out quickly I'm sure. Begging .... Pete |
#2
|
|||
|
|||
![]()
Newmacros indicates recorded macros.
They should be stored in your normal template and available in all documents. What, seems to be the problem? |
#3
|
|||
|
|||
![]()
Hi Charles
Thanks for your interest: I get an error message - see attachment. A person competent in VBA needs to sort these marcos out - there's only about 3-4. Thanks Peter |
#4
|
|||
|
|||
![]()
I'm sorry. You still haven't given us much to work with. While the error message is a start, no one is going to be able to tell you which lines of your macros are causing a problem without seeing the macro and knowing the purpose of the macro.
I fiddle with vba, I am not a competent programmer. I am a lawyer. Ambiguous name means that the name has been used in multiple places in different ways rather than just referring to one thing. Notes on using this forum: If you click on the "Go Advanced" button at the bottom you can attach a screenshot using the paperclip icon. You do not need to encapsulate it in a separate Word document. If you are posting a macro, if you surround it with hash tags # of code and /code it will format correctly. Thus: Code:
This is a holder for vba code. |
#5
|
||||
|
||||
![]()
There were no macros in the document and the macro in the illustration is in error because the highlighted line that names the macro 'Sub HideTextDoubleBrackets' is a duplicate of the previous line. No doubt there are two 'End Sub' lines also.
Add Option Explicit (if not already present) to the top of the module and click Debug > Compile Normal. See http://www.gmayor.com/installing_macro.htm
__________________
Graham Mayor - MS MVP (Word) (2002-2019) Visit my web site for more programming tips and ready made processes www.gmayor.com |
#6
|
|||
|
|||
![]()
Thank you Charles and Graham for your help. There were indeed two macro names - latter of which I finally summoned up the courage to delete. And the macro now works. I have also deleted some attempts at macros which didn't work - cleaning things up a bit.
Since the experts are here, 2 questions: -How can I create a marcro to delete MetaData (document created by, last saved by etc.) in a single click? - How do I combine 2 existing marcos and finally F12 (save as) into a single macro? Thanks for any help you can offer. Peter |
#7
|
|||
|
|||
![]()
"Writing Word Macros" by Steve Roman
Macros and VBA (Visual Basic for Applications) Your second task requires opening the VBA editor and moving the guts of one macro into the second. Removing all metadata is beyond my capabilities. |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
wordini | Word | 6 | 02-23-2014 09:22 PM |
URGENT HELP NEEDED: Strange boxes over header area in Word 2010 | zee_shah | Word | 1 | 10-31-2013 09:41 AM |
![]() |
dkester | Word | 1 | 10-04-2013 02:42 PM |
Boston Word Expert Needed | pmarc | Word VBA | 0 | 04-03-2013 05:36 PM |
Help needed with printing in Word | sophieb | Word | 0 | 11-16-2010 12:52 PM |