I have a macro that inserts the filepath in the footer in the right hand corner. However, if there is already something in the footer (e.g. page numbers), it pushes it off the page. How can I modify it so that it only inserts tabs if the footer is blank; & otherwise, insert the filepath in the lower right corner.
Thanks in advance,
Sub InsPath() ' ' Macro modified 10/12/00 by Phil Rabichow ' ' InsPath Macro ' Inserts complete filepath in footer, right justified, 8 pt, TNR ' Dim UserView As Integer With ActiveWindow UserView = .View.Type If UserView wdPageView Then .View.Type = wdPageView End If .ActivePane.View.SeekView = wdSeekCurrentPageHeader With Selection .MoveDown Unit:=wdLine, Count:=1 .TypeText Text:=vbTab & vbTab .Fields.Add Range:=.Range, Type:=wdFieldEmpty, Text:= _ "FILENAME p ", PreserveFormatting:=True .MoveLeft Unit:=wdCharacter, Count:=1, Extend:=wdExtend With .Font .Name = "Times New Roman" .Size = 8 .Bold = False End With End With .ActivePane.View.SeekView = wdSeekMainDocument .View.Type = UserView End With End Sub