Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 07-06-2022, 07:30 AM
macropod's Avatar
macropod macropod is offline Edit Reference in Word bv VBA Windows 10 Edit Reference in Word bv VBA Office 2016
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,467
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

Try:
Code:
Sub RefDemo()
Application.ScreenUpdating = False
ActiveWindow.ActivePane.View.SeekView = wdSeekCurrentPageHeader
With Selection
  .EndKey Unit:=wdStory
  .Fields.Add .Range, wdFieldEmpty, Text = "REF T_LIEFERANTENERGAENZUNG_BERECHNUNG \* MERGEFORMAT \h", False
End With
Application.ScreenUpdating = True
End Sub

__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
Reply

Tags
formating, vba



Similar Threads
Thread Thread Starter Forum Replies Last Post
Edit Reference in Word bv VBA Determining if an in-text table reference was created with Word's native cross reference feature scienceguy Excel Programming 2 10-25-2021 04:44 AM
How to edit add-ons panel in word 2010 created in word 2000 alexxmore Word 2 03-18-2020 04:45 AM
How do I edit my TOC to reference the section numbers instead of the page numbers??? mikey386 Word 0 12-17-2014 02:34 PM
Edit Reference in Word bv VBA Reference number and cross reference for equation numbers to match the thesis format wmac Word 1 05-14-2013 08:54 PM
MarkAsFinal - 'Edit Anyway' edit popup issue GovindRS PowerPoint 1 06-20-2011 06:43 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 04:50 AM.


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