Sparkyrose
02-07-2008, 08:30 AM
Hi,
I'll begin by saying I'm not a programmer of VBA (or anything for that matter!) but I'm just trying to get one little thing to work.
I have obtained a macro from the maker of my company's document management system that will insert the DM ref no in the footer of all word docs. It works fine, except I wanted to format the text to 7 point (it defaults to 12.)
This is the code:
Private Function FooterAttributes() As Collection
If mcolFooterAttributes.count = 0 Then
' Populate collection with default profile info
With mcolFooterAttributes
.Add imProfileDatabase, "1"
.Add imProfileDocNum, "2"
.Add imProfileVersion, "3"
End With
End If
Set FooterAttributes = mcolFooterAttributes
End Function
I'm sure it's a simple thing, I just have no idea how to make it work.
I tried adding: With Selection.Font
.Size = 7
End With
But it formatted the main body, not the footer.
Any help would be greatly appreciated!!
I'll begin by saying I'm not a programmer of VBA (or anything for that matter!) but I'm just trying to get one little thing to work.
I have obtained a macro from the maker of my company's document management system that will insert the DM ref no in the footer of all word docs. It works fine, except I wanted to format the text to 7 point (it defaults to 12.)
This is the code:
Private Function FooterAttributes() As Collection
If mcolFooterAttributes.count = 0 Then
' Populate collection with default profile info
With mcolFooterAttributes
.Add imProfileDatabase, "1"
.Add imProfileDocNum, "2"
.Add imProfileVersion, "3"
End With
End If
Set FooterAttributes = mcolFooterAttributes
End Function
I'm sure it's a simple thing, I just have no idea how to make it work.
I tried adding: With Selection.Font
.Size = 7
End With
But it formatted the main body, not the footer.
Any help would be greatly appreciated!!