Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,355
Default Determining Last Edit Name on Excel Workbook

I have a list of workbooks and I want to determine who last edited them. I
know how to open them programmatically, but I'm not sure how to extract who
edited them. I'm sure there is some variable name somewhere that contains
this information. Can someone assist?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 258
Default Determining Last Edit Name on Excel Workbook

Hi Barb,

see help for builtindocumentproperties.

Regards,
Ivan

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,355
Default Determining Last Edit Name on Excel Workbook

What am I doing wrong he

Sub LastEdit()
Dim oWB As Workbook
Dim aWB As Workbook
Dim aWS As Worksheet

Set aWB = ActiveWorkbook
Set aWS = ActiveSheet
Range("AV1").Select
ActiveCell.FormulaR1C1 = "LastEdit"
For i = 2 To Cells(Rows.Count, "AU").End(xlUp).row
Set oWB = Workbooks.Open(Cells(i, "B"), ReadOnly = True, _
UpdateLinks = False)
aWS.Range("AV" & i).Value = BuiltinDocumentProperties.Value("Last
Author")
oWB.Close SaveChanges:=False
aWB.Save
Next i
aWB.Save
End Sub

I've never accessed the built in properties so have no clue.

Thanks,
Barb Reinhardt

"Ivan Raiminius" wrote:

Hi Barb,

see help for builtindocumentproperties.

Regards,
Ivan


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default Determining Last Edit Name on Excel Workbook

? Activeworkbook.BuiltinDocumentProperties("Last Author").Value
OGILVTW

--
Regards,
Tom Ogilvy


"Barb Reinhardt" wrote:

What am I doing wrong he

Sub LastEdit()
Dim oWB As Workbook
Dim aWB As Workbook
Dim aWS As Worksheet

Set aWB = ActiveWorkbook
Set aWS = ActiveSheet
Range("AV1").Select
ActiveCell.FormulaR1C1 = "LastEdit"
For i = 2 To Cells(Rows.Count, "AU").End(xlUp).row
Set oWB = Workbooks.Open(Cells(i, "B"), ReadOnly = True, _
UpdateLinks = False)
aWS.Range("AV" & i).Value = BuiltinDocumentProperties.Value("Last
Author")
oWB.Close SaveChanges:=False
aWB.Save
Next i
aWB.Save
End Sub

I've never accessed the built in properties so have no clue.

Thanks,
Barb Reinhardt

"Ivan Raiminius" wrote:

Hi Barb,

see help for builtindocumentproperties.

Regards,
Ivan


  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,355
Default Determining Last Edit Name on Excel Workbook

Thank you very much. This will save me a LOT of time.

"Tom Ogilvy" wrote:

? Activeworkbook.BuiltinDocumentProperties("Last Author").Value
OGILVTW

--
Regards,
Tom Ogilvy


"Barb Reinhardt" wrote:

What am I doing wrong he

Sub LastEdit()
Dim oWB As Workbook
Dim aWB As Workbook
Dim aWS As Worksheet

Set aWB = ActiveWorkbook
Set aWS = ActiveSheet
Range("AV1").Select
ActiveCell.FormulaR1C1 = "LastEdit"
For i = 2 To Cells(Rows.Count, "AU").End(xlUp).row
Set oWB = Workbooks.Open(Cells(i, "B"), ReadOnly = True, _
UpdateLinks = False)
aWS.Range("AV" & i).Value = BuiltinDocumentProperties.Value("Last
Author")
oWB.Close SaveChanges:=False
aWB.Save
Next i
aWB.Save
End Sub

I've never accessed the built in properties so have no clue.

Thanks,
Barb Reinhardt

"Ivan Raiminius" wrote:

Hi Barb,

see help for builtindocumentproperties.

Regards,
Ivan




  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default Determining Last Edit Name on Excel Workbook

Look in excel vba help at BuiltinDocumentProperties and see if the last
author property gives you what you want.

? Activeworkbook.BuiltinDocumentProperties("Last Author").Value
OGILVTW


--
Regards,
Tom Ogilvy


"Barb Reinhardt" wrote:

I have a list of workbooks and I want to determine who last edited them. I
know how to open them programmatically, but I'm not sure how to extract who
edited them. I'm sure there is some variable name somewhere that contains
this information. Can someone assist?

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
Determining Worksheet Edit Mode Kevin Excel Programming 3 February 8th 06 08:59 PM
Determining if workbook is already opened by someone else? Don Wiss Excel Programming 1 May 28th 05 11:40 AM
Determining which template created workbook Dave M[_4_] Excel Programming 1 December 16th 04 03:15 AM
Determining last row/column using ADO with closed workbook kurb Excel Programming 16 November 4th 04 03:12 PM
Determining if a worksheet exists within a workbook Cory Schneider Excel Programming 1 July 17th 03 12:36 AM


All times are GMT +1. The time now is 07:50 AM.

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"