Hi, Thanks for that, it works. Only problem I came across, was that the user needs to click File, and New Document for it to work, so I decided to script the opening of Ms Word using VBS as follows, then created a shortcut to the vbs file, and changed the shortcut icon to the MS Word icon. Now we can tell which student belongs to which printout.
(hmm... from vba to vbs, maybe this should be moved to the vbs forum. lol)
Set WshShell = CreateObject("WScript.Shell")
set oEnv=WshShell.Environment("User")
strFullName = oEnv.item("FULLNAME")
Set objWord = CreateObject("Word.Application")
objWord.Visible = True
Set objDoc = objWord.Documents.Add()
objDoc.Sections(1).Footers(1).Range.Text = strFullName
objDoc.Sections(1).Footers(1).Range.ParagraphFormat.Alignment = 1
with some modifications for powerpoint:
Set WshShell = CreateObject("WScript.Shell")
set oEnv=WshShell.Environment("User")
strFullName = oEnv.item("FULLNAME")
Set ppApp = CreateObject("Powerpoint.Application")
ppApp.Visible = True
Set ppt = ppApp.Presentations.Add
ppt.SlideMaster.HeadersFooters.Footer.Text = strFullName
Enter your message below
Sign in or Join us (it's free).