View Single Post
 
Old 02-03-2018, 12:23 PM
JML's Avatar
JML JML is offline Mac OS X Office 2016 for Mac
Novice
 
Join Date: Feb 2018
Location: Pittsburgh, PA
Posts: 5
JML is on a distinguished road
Default

I found that deleting this block allows the macro to run, but there are no column lines and no column titles. So can anyone tell me what's wrong with this block of code?

'Insert info in header - change date format as you wish
oNewDoc.Sections(1).Headers(wdHeaderFooterPrimary) .Range.Text = _
"Tracked changes extracted from: " & oDoc.FullName & vbCr & _
"Created by: " & Application.UserName & vbCr & _
"Creation date: " & Format(Date, "MMMM d, yyyy")
Reply With Quote