Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #4  
Old 11-18-2014, 12:34 PM
gmaxey gmaxey is offline Go To Index Macro Windows 7 32bit Go To Index Macro Office 2010 (Version 14.0)
Expert
 
Join Date: May 2010
Location: Brasstown, NC
Posts: 1,617
gmaxey is just really nicegmaxey is just really nicegmaxey is just really nicegmaxey is just really nicegmaxey is just really nice
Default

Phil,

I had the Exit For in the wrong place. Sorry:

Code:
Sub ScratchMacro()
'A basic Word macro coded by Greg Maxey
Dim oFld As Word.Field
  For Each oFld In ActiveDocument.Range.Fields
    If oFld.Type = wdFieldIndex Then
      oFld.Select
      Exit For
    End If
    
  Next oFld
    
End Sub
__________________
Greg Maxey
Please visit my web site at http://www.gregmaxey.com/
Reply With Quote
 

Tags
gotoindex macro, index, indexing in word



Similar Threads
Thread Thread Starter Forum Replies Last Post
Go To Index Macro Create index gtpt Word 1 03-07-2014 07:34 PM
Need help with Index formula gbaker Excel 7 02-07-2014 06:34 AM
Go To Index Macro Formatting a second index Lebber Word 3 08-05-2013 02:13 AM
Adding an Index savo Word 1 04-17-2013 06:16 PM
Go To Index Macro Index switches cksm4 Word VBA 2 02-03-2011 07:21 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 03:46 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