Results 1 to 5 of 5

Auto insert of Username in a set cell

Threaded View

  1. #1
    Forum Contributor
    Join Date
    11-02-2011
    Location
    Rugby, England
    MS-Off Ver
    Office 365
    Posts
    876

    Auto insert of Username in a set cell

    Good evening happy campers,

    I have a workbook with 4 tabs.

    On the tab named 'Requests' i want excel to automatically insert my windows login name into cell A1 on the requests tab as soon as i open the workbook.
    And at present it's killing me lol
    So far i have the following -
    Private Sub Workbook_Open()
    Sheets("Requests").Range("A1") = Application.UserName
    End Sub
    But this does not work

    Thanks in advance, galvinpaddy.
    Last edited by galvinpaddy; 03-22-2012 at 04:42 PM.

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