#1
|
|||
|
|||
Macro to change user name
Trying to set up a macro that will change my user name in MS Word tracking but I keep getting debug and VB "break" code messages. Any suggestions? If I could just create a macro for part of it, that would be helpful.
Thanks. |
#2
|
||||
|
||||
Did you look at the entry for the Application.UserName Property in the VBA help file? It's usage is pretty simple. Beyond that, there's not much advice that can be given without seeing your code.
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#3
|
|||
|
|||
Thanks for your response. I'm not up on VB unfortunately. Here's the macro I wrote.....It doesn't excecute at all, though other macros are working. I have a "pause" button on the keyboard. Can I use that?
Sub trackingname() ' ' trackingname Macro ' ' Application.UserName = "EL" Application.UserInitials = "EL" Application.UserName = "" Application.UserInitials = "" Application.UserAddress = "" End Sub |
#4
|
||||
|
||||
Did you run the macro, then go to File|Options and check whether the username is now 'EL'?
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
Tags |
macro, tracking, user name |
Thread Tools | |
Display Modes | |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Computer User Name Change Affects iPad | ottiliegirl | Office | 0 | 03-24-2015 11:41 AM |
Pausing a Macro for User Selection and continuing | anirudhsood | Word VBA | 1 | 09-04-2012 08:34 PM |
Change standard highlight text color to user defined | Scott Duffens | Word | 2 | 06-18-2012 03:53 PM |
Best way to offer macro user options? | Jennifer Murphy | Word VBA | 1 | 02-15-2012 09:44 PM |
Change User Settings Globally within an Office. | Welshie82 | Word | 0 | 10-24-2011 07:56 AM |