Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
here is the unworking script:
Private Sub Workbook_open() Worksheets("Frontscreen").Activate ActiveSheet.Unprotect Dim x Set x = CreateObject("WSCRIPT.Network") Dim u u = x.UserName t = Time 'update text box "Last Updated:" ActiveSheet.TextBoxes("txtLogon").Text = "Welcome to IRIS " & u & " - Access Time: " & t ActiveSheet.Protect lastrow = Worksheets("log").Cells(Rows.Count, "A").End(xlUp).Row Loglisting = txtLogon.Value Worksheets("Log").Range("A" & lastrow + 1).Value = Loglisting End Sub Basically when workbook opens the current user is identified and displayed using text box. I want this value to be copied to the next available line in a log worksheet that is hidden from the user. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Allow only writing in a protected Sheet | Setting up and Configuration of Excel | |||
Writing formulas between sheet | Excel Discussion (Misc queries) | |||
Writing value in cell in another sheet | Excel Programming | |||
Writing to protected sheet from ASP.NET | Excel Programming | |||
Writing to protected sheet from ASP.NET | Excel Programming |