#1   Report Post  
Posted to microsoft.public.excel.misc
Param
 
Posts: n/a
Default Show Username

Hi,

How to show current username appear at specific cell when the user open the
file.

TQ
  #2   Report Post  
Posted to microsoft.public.excel.misc
Bob Phillips
 
Posts: n/a
Default Show Username

'-----------------------------------------------------------------
Private Sub Workbook_Open()
'-----------------------------------------------------------------
With Thisworkbook.Worksheets("Sheet1")
.Range("A1").Value = Environ("UserName")
End With
End Sub

'This is workbook event code.
'To input this code, right click on the Excel icon on the worksheet
'(or next to the File menu if you maximise your workbooks),
'select View Code from the menu, and paste the code



--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"Param" wrote in message
...
Hi,

How to show current username appear at specific cell when the user open

the
file.

TQ



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
Dynamic Range with unused formula messing up x axis on dynamic graph [email protected] Charts and Charting in Excel 2 February 2nd 06 08:02 PM
How do I show break in bar graph to show large and small numbers GK Charts and Charting in Excel 1 December 19th 05 08:23 PM
Line Chart - show percent and value? PK Charts and Charting in Excel 5 November 18th 05 04:24 PM
Show values from other sheet TONY Excel Worksheet Functions 0 August 31st 05 03:03 PM
UDF and Calculation tree Ken Wright Links and Linking in Excel 1 February 6th 05 04:58 PM


All times are GMT +1. The time now is 10:03 PM.

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"