Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #3  
Old 05-13-2021, 07:13 PM
macropod's Avatar
macropod macropod is offline Create an index to 2700 audio files Windows 10 Create an index to 2700 audio files Office 2016
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,521
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Quote:
Originally Posted by Guessed View Post
Note that when you tell me that my previously supplied solution is inelegant then you will find that I'm going to expect you to do a lot more of the pre-work.
Indeed, given the negative attitude displayed here:
https://www.msofficeforums.com/159753-post1.html
RRB seems committed to not encouraging support...

The following Excel macro will generate a plethora of attributes for every file in whatever folder you point it at.
Code:
Sub ExtractFilePropeties()
Dim objShell As Object, objFolder As Object ' Shell & Folder
Dim strFldr, strFlNms, r As Long, c As Long
strFldr = GetFolder & "\": If strFldr = "\" Then Exit Sub
r = 1
Set objShell = CreateObject("Shell.Application")
Set objFolder = objShell.Namespace(strFldr)
With objFolder
  For c = 0 To 320
    Cells(r, c + 1) = .GetDetailsOf(.Items, c)
  Next
  Exit Sub
  For Each strFlNms In .Items
    r = r + 1
    For c = 0 To 320
      Cells(r, c + 1) = objFolder.GetDetailsOf(strFlNms, c)
    Next
  Next
End With
End Sub

Function GetFolder() As String
Dim oFolder As Object
GetFolder = ""
Set oFolder = CreateObject("Shell.Application").BrowseForFolder(0, "Choose a folder", 0)
If (Not oFolder Is Nothing) Then GetFolder = oFolder.Items.Item.Path
Set oFolder = Nothing
End Function
I'll let RRB tailor it to just the attributes sought. Hint: Word 365 for Mac - Programatically control date fields without opening - Microsoft Community
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
 

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Create an index to 2700 audio files Changing Link on Audio Files on Startup mikbro1215 Word VBA 5 03-12-2020 01:45 PM
Can a I create an index in a word document where index entries control sections of the document? pfriorda Word 3 12-28-2017 08:02 PM
msw 2007 ver 12-how do i create a audio link? ss1133 Office 0 03-27-2012 09:07 AM
Cannot insert audio files unless speakers/headphones are present. HELP! brennj4 PowerPoint 0 01-04-2012 11:05 AM
Create an index to 2700 audio files PPT 2010 will only insert, not link to audio files. kevin3d PowerPoint 1 10-07-2011 09:17 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 11:03 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft