Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi Barb,
see help for builtindocumentproperties. Regards, Ivan |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
? 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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Determining Worksheet Edit Mode | Excel Programming | |||
Determining if workbook is already opened by someone else? | Excel Programming | |||
Determining which template created workbook | Excel Programming | |||
Determining last row/column using ADO with closed workbook | Excel Programming | |||
Determining if a worksheet exists within a workbook | Excel Programming |