M
Marley
Using Word 2007and customising the ribbon I can create a macro and button
which then opens a new document from this template. However I want to put in
code which picks up the user's own name:
This works for me:
Documents.Add
("C:\Users\joebloggs\AppData\Roaming\Microsoft\Templates\Synapsys\Report.dotm")
But I want to change the 'joebloggs' to automatically pick up the user name
of whoever logs on but this is beyond my simple skills.
Cheers for the help!
which then opens a new document from this template. However I want to put in
code which picks up the user's own name:
This works for me:
Documents.Add
("C:\Users\joebloggs\AppData\Roaming\Microsoft\Templates\Synapsys\Report.dotm")
But I want to change the 'joebloggs' to automatically pick up the user name
of whoever logs on but this is beyond my simple skills.
Cheers for the help!