Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 05-26-2011, 07:46 AM
ElfegoBaca ElfegoBaca is offline vbTab in macros Windows 7 64bit vbTab in macros Office 2010 64bit
Novice
vbTab in macros
 
Join Date: May 2011
Posts: 5
ElfegoBaca is on a distinguished road
Default vbTab in macros


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?
Reply With Quote
  #2  
Old 05-26-2011, 09:40 PM
macropod's Avatar
macropod macropod is offline vbTab in macros Windows 7 32bit vbTab in macros Office 2007
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,342
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

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]
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
vbTab in macros How to automatically enable the macros upon opening a file with macros? laurieli Office 7 01-17-2016 08:56 AM
macros stebrownsword Word VBA 0 08-28-2013 01:16 AM
vbTab in macros VBA macros 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

Other Forums: Access Forums

All times are GMT -7. The time now is 08:03 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft