Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
Tom Tom is offline
external usenet poster
 
Posts: 1
Default How can I set up a page tracker?

I want a tracker for my excel workbook. The usernames I
need are the xp logons not the usernames seen as licenced
with office. I do not mind if there is a seperate file
held but I need to be able to restore any changes made
and know who made them. The sheets will be used by some
people which may not want the spreadsheet to work because
it is changing the way they have been doing things for
years as far as information collection.

Tom
  #2   Report Post  
Posted to microsoft.public.excel.programming
No Name
 
Posts: n/a
Default How can I set up a page tracker?

I have worked it out I will share it with everyone.

It is the best possible solution and holds all info in a
dll file seperately. It gets the windows xp username and
not the application username too.

here goes --

paste this into thisworkbook

Private Sub Workbook_SheetChange(ByVal Sh As Object,
ByVal Target As Range)

If Target.Locked Then
TrackFile = "E:\Documents and Settings\All
Users\Desktop\Tracker.dll"
TargUser = UserName()
TargAddr = Sh.Name & "!" & Target.Address(False, False)
TargVal = Target.Resize(1, 1).Text
TargDate = Format(Now, "yyyy/mm/dd hh:mm")

x = TargDate & vbTab & TargUser & vbTab & TargAddr &
vbTab & TargVal
Open TrackFile For Append As #1
Print #1, x
Close #1

End If

End Sub

Then paste this into a new module -

Declare Function GetUserName Lib "advapi32.dll"
Alias "GetUserNameA" _
(ByVal lpBuffer As String, nSize As Long) As Long

Function UserName() As String

Dim Buffer As String * 100
Dim BuffLen As Long

BuffLen = 100
GetUserName Buffer, BuffLen
UserName = Left(Buffer, BuffLen - 1)

End Function

You will now have a dll file in your choice of location
which can be opened in notepad.
-----Original Message-----
I want a tracker for my excel workbook. The usernames I
need are the xp logons not the usernames seen as

licenced
with office. I do not mind if there is a seperate file
held but I need to be able to restore any changes made
and know who made them. The sheets will be used by some
people which may not want the spreadsheet to work

because
it is changing the way they have been doing things for
years as far as information collection.

Tom
.

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
Vacation Tracker JEB Excel Discussion (Misc queries) 2 January 20th 10 01:04 AM
vacation tracker RRyan Excel Discussion (Misc queries) 2 December 15th 09 05:55 PM
Tracker CX Manager NY Excel Worksheet Functions 2 September 12th 08 12:27 AM
I am making MIS tracker Raj Excel Discussion (Misc queries) 1 May 24th 06 03:52 PM
MIS tracker Raj Excel Worksheet Functions 0 May 24th 06 02:38 PM


All times are GMT +1. The time now is 07:20 PM.

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

About Us

"It's about Microsoft Excel"