Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 47
Default 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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,302
Default application user input

Hi Rich,

Perhaps there is a hidden subtlety, but try:

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

---
Regards,
Norman



"Rich" wrote in message
...
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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 47
Default 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" wrote in message
...
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
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Prompt user for input and utilize that input ninner Excel Worksheet Functions 2 March 28th 07 09:44 PM
nice input application form יונתן Charts and Charting in Excel 0 July 4th 06 03:49 PM
Have user input converted to uppercase in same cell as input? Shannonn New Users to Excel 1 June 20th 06 03:19 AM
CODE to select range based on User Input or Value of Input Field Sandi Gauthier Excel Programming 4 December 8th 03 03:22 PM
Input Box won't show when Application windowstate minimised Joe 90[_2_] Excel Programming 1 October 21st 03 01:22 AM


All times are GMT +1. The time now is 03:51 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"