Word 2010: Shortcut for short VBA script
hi all. i'd automate vba script have in word 2010. i've been given short vba script lock numbering in document (so other users cannot change numbering in lists). method use carry out code is:
- press alt+f11 activate visual basic editor.
- press ctrl+g activate immediate window.
- type or copy/paste following line: activedocument.convertnumberstotext
is there way automate process single keyboard shortcut? possibly via macro? tried record macro carry out above tasks, met unexpected results. clicked 'record macro,' carried out above steps usual, clicked 'stop recording.' numbering did not end locked.
or perhaps can save vba code word documents can access it, assign keyboard shortcut?
thanks in advance. bear me i've never used visual basic before.
to create macro, click alt-f8 open macros dialog. type 'locknumbers' name box, click create. when vbe opens, paste in:
activedocument.convertnumberstotext
(the destination selected) press alt-f11 exit vbe.
from on, run macro, click alt-f8 open macros dialog, select 'locknumbers' macro , click run. assign macro keyboard shortcut, see: http://office.microsoft.com/en-au/word-help/record-or-run-a-macro-ha010099769.aspx
cheers
paul edstein
[ms mvp - word]
Microsoft Office > Word IT Pro Discussions
Comments
Post a Comment