+ Reply to Thread
Results 1 to 3 of 3

application user input

  1. #1
    Rich
    Guest

    application user input

    need a way to get excell to enter the "application user" name into cell c3 ?

    Sub auto_open()
    Sheets("log").Select
    Rows("2:2").Select
    Selection.Insert Shift:=xlDown
    Range("A2").Select
    ActiveCell.FormulaR1C1 = "=NOW()"
    Range("B2").Select
    ActiveCell.FormulaR1C1 = "=NOW()"
    Range("A2").Select
    Selection.NumberFormat = "dd-mmm-yy"
    Range("B2").Select
    Selection.NumberFormat = "h:mm"
    Range("c2").Select

    End Sub

    thanks in advance

  2. #2
    Norman Jones
    Guest

    Re: application user input

    Hi Rich,

    Perhaps there is a hidden subtlety, but try:

    Sheets("log").Range("C3") = Application.UserName

    ---
    Regards,
    Norman



    "Rich" <[email protected]> wrote in message
    news:[email protected]...
    > need a way to get excell to enter the "application user" name into cell c3
    > ?
    >
    > Sub auto_open()
    > Sheets("log").Select
    > Rows("2:2").Select
    > Selection.Insert Shift:=xlDown
    > Range("A2").Select
    > ActiveCell.FormulaR1C1 = "=NOW()"
    > Range("B2").Select
    > ActiveCell.FormulaR1C1 = "=NOW()"
    > Range("A2").Select
    > Selection.NumberFormat = "dd-mmm-yy"
    > Range("B2").Select
    > Selection.NumberFormat = "h:mm"
    > Range("c2").Select
    >
    > End Sub
    >
    > thanks in advance




  3. #3
    Rich
    Guest

    Re: application user input

    thanks it worked, thought it would be sommert like imput ,, which is why i
    couldnt get it to work

    "Norman Jones" wrote:

    > Hi Rich,
    >
    > Perhaps there is a hidden subtlety, but try:
    >
    > Sheets("log").Range("C3") = Application.UserName
    >
    > ---
    > Regards,
    > Norman
    >
    >
    >
    > "Rich" <[email protected]> wrote in message
    > news:[email protected]...
    > > need a way to get excell to enter the "application user" name into cell c3
    > > ?
    > >
    > > Sub auto_open()
    > > Sheets("log").Select
    > > Rows("2:2").Select
    > > Selection.Insert Shift:=xlDown
    > > Range("A2").Select
    > > ActiveCell.FormulaR1C1 = "=NOW()"
    > > Range("B2").Select
    > > ActiveCell.FormulaR1C1 = "=NOW()"
    > > Range("A2").Select
    > > Selection.NumberFormat = "dd-mmm-yy"
    > > Range("B2").Select
    > > Selection.NumberFormat = "h:mm"
    > > Range("c2").Select
    > >
    > > End Sub
    > >
    > > thanks in advance

    >
    >
    >


+ 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