Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I am trying to display the properties of a file.
But I keep getting a "user-defined" error on the Dim DSO As..........line of the macro. Can someone correct me please? -------------------------- Private Sub Workbook_Open() Dim FileName As String Dim DSO As DSOleFile.PropertyReader Set DSO = New DSOleFile.PropertyReader FileName = "D:\Sitem_Excel\motor.xls" With DSO.GetDocumentProperties(sfilename:=FileName) Debug.Print .AppName Debug.Print .Author Debug.Print .ByteCount Debug.Print .Company Debug.Print .Title Debug.Print .Subject Debug.Print .Author Debug.Print .Category Debug.Print .Keywords Debug.Print .Comments End With End Sub |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
#NAME? Error With User Defined Functions | Excel Worksheet Functions | |||
vlookup, add parameter, on error return user defined value | Excel Worksheet Functions | |||
"User-defined type not defined" message in Excel | Excel Discussion (Misc queries) | |||
#Name? Error in User Defined VB Function | Excel Worksheet Functions | |||
Runtime Error 1004 -- Application Defined or Object Defined Error | Excel Programming |