![]() |
#1
|
|||
|
|||
![]() I am trying to create a macro in Microsoft word. I have a protected document. I would like to create a macro that will enter 27 tabs in a row, thus moving to the 27th field. I have found that in Microsoft word, you cannot record a macro while in protected mode. So I created it in unprotected mode and then tried to run it while in protected mode. Unfortunatley this gets me an error. How can I write a macro that will move my curser 27 fields ahead? |
#2
|
||||
|
||||
![]()
You're certainly going about this the hard way!
Assuming the formfield you want to go to has an internal bookmark name (eg "Text27"), then add a macro like the following to your document and make it the 'on exit' macro for the formfield you want to get there from. Code:
Sub MyNextField() ActiveDocument.FormFields("Text27").Select End Sub
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
laurieli | Office | 7 | 01-17-2016 08:56 AM |
macros | stebrownsword | Word VBA | 0 | 08-28-2013 01:16 AM |
![]() |
tays01s | Word VBA | 6 | 08-03-2011 09:42 PM |
Macros | nore | Outlook | 0 | 06-01-2011 04:39 PM |
macros | trancetheory | Outlook | 0 | 05-11-2010 09:31 AM |