+ Reply to Thread
Results 1 to 10 of 10

Set Excel Author Option?

Hybrid View

  1. #1
    Registered User
    Join Date
    09-16-2004
    Location
    Virginia
    Posts
    46

    Set Excel Author Option?

    I did a search on the forums to no avail...

    Can you programmatically change the default Author setting for Excel? I see you can return it, but I can't see how to set it!

    I am running an Access database which allows users to export data to Excel. When they do this, however, I want their username to be the Author attribute of the documents that they create. How can I do this? I can set the attribute for an individual workbook, but I want to change it in their Excel options.

    Thanks!!
    Tom Stock
    Office version: MSO 2002 SP3
    OS: Windows XP Pro
    Hardware: IBM Thinkpad T41

  2. #2
    Forum Expert dominicb's Avatar
    Join Date
    01-25-2005
    Location
    Lancashire, England
    MS-Off Ver
    MS Office 2000, 2003, 2007 & 2016 365
    Posts
    4,867

    Smile

    Good evening Tom

    Try going to Tools > Options, General tab, Username.

    This is the name that Excel uses as the author in the file properties.

    HTH

    DominicB

  3. #3
    Registered User
    Join Date
    09-16-2004
    Location
    Virginia
    Posts
    46

    Read my post again

    I appreciate your post, however, I am looking to do this programatically. I know how to do this manually.

  4. #4
    Forum Expert dominicb's Avatar
    Join Date
    01-25-2005
    Location
    Lancashire, England
    MS-Off Ver
    MS Office 2000, 2003, 2007 & 2016 365
    Posts
    4,867

    Smile

    Hi Tom

    I answered the question that you asked using the information you supplied. In the light of what you've just posted, this might help.

    Sub Test()
    Application.UserName = "DominicB"
    End Sub

    HTH

    DominicB

  5. #5
    Registered User
    Join Date
    09-16-2004
    Location
    Virginia
    Posts
    46
    Quote Originally Posted by dominicb
    I answered the question that you asked using the information you supplied.
    I guess you missed the part where I stated

    Can you programmatically change the default Author setting for Excel? I see you can return it, but I can't see how to set it!
    I felt it was pretty clear, but I could be mistaken.

  6. #6
    Registered User
    Join Date
    09-16-2004
    Location
    Virginia
    Posts
    46
    BTW, your code does what I was looking for it to do.

    Thanks for your help!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1