View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming,microsoft.public.vb.general.discussion
Conan Kelly Conan Kelly is offline
external usenet poster
 
Posts: 419
Default Changing properties of a file with VBA

Hello all,

x-posted:
microsoft.public.excel.programming
microsoft.public.vb.general.discussion

I was wondering if it is possible to change a property of a file
(right-click file in Windows Explorer (or [Alt] + [Enter]) Summary tab
"Advanced" button desired property) using VBA? Specifically, I want to
change the "Title" property of an MP3 file.

I'm using VBA in XL 2003 to do this. Right now, I have a loop that will
loop through each file and change the name of the file according to my
specifications using the File System Object in the Scripting Runtime
library. I want to have the code change the "Title" property of the file to
the file name (minus the extension), but it doesn't look like I can access
these properties using the FSO (or any other object) in the Scripting
Runtime library.

Does anyone know if it is possible to change these properties via code?
What objects I need to use/libraries I need to reference?

Thanks for any help anyone can provide,

Conan Kelly



---------------------------
"Smokin' weed kills your brain cells. Drinkin' only screws up your
liver...ya got 2 a those."
- Earl Hickey (NBC's "My Name is Earl")